AWS Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see AWS Systems Manager Change Manager availability change.
Create an auto-approval policy for just-in-time node access
Auto-approval policies use the Cedar policy language to define which users can
automatically connect to the specified nodes without manual approval. An
auto-approval policy contains multiple permit statements specifying
the principal and resource. Each statement includes a
when clause defining the conditions for automatic
approval.
The following is an example auto-approval policy.
permit (
principal in AWS::IdentityStore::Group::"e8c17310-e011-7089-d989-10da1EXAMPLE",
action == AWS::SSM::Action::"getTokenForInstanceAccess",
resource
)
when {
principal has costCenter && resource.hasTag("CostCenter") && principal.costCenter == resource.getTag("CostCenter")
};
permit (
principal in AWS::IdentityStore::Group::"d4q81745-r081-7079-d789-14da1EXAMPLE",
action == AWS::SSM::Action::"getTokenForInstanceAccess",
resource
)
when {
principal has organization && resource.hasTag("Engineering") && resource.hasTag("Production") && principal.organization == "Platform"
};
permit (
principal,
action == AWS::SSM::Action::"getTokenForInstanceAccess",
resource
)
when {
principal has employeeNumber && principal.employeeNumber like "E-1*" && resource.hasTag("Purpose") && resource.getTag("Purpose") == "Testing"
};The following procedure describes how to create an auto-approval policy for just-in-time node acces. The access duration for an access request that is automatically approved is 1 hour. This value can't be changed. You can only have one auto-approval policy per AWS account and AWS Region. For more information about how to construct policy statements, see Statement structure and built-in operators for auto-approval and deny-access policies.
To create an auto-approval policy
Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/
. -
Select Manage node access in the navigation pane.
-
In the Approval policies tab, select Create an auto-approval policy.
-
Enter your policy statement for the auto-approval policy in the Policy statement section. You can use the Sample statements provided to help you create your policy.
-
Select Create auto-approval policy.