StackState IAM role: EC2
StackState Self-hosted v4.5.x
This page describes StackState v4.5.x. The StackState 4.5 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.5 version range to upgrade to a more recent release.
Overview
If StackState is running within an AWS environment on an EC2 instance, it can have an IAM role attached to the EC2 instance. When this role is available, the AWS StackPack can be installed with the use-role
option for IAM authentication (the AWS Access Key ID and AWS Secret Access Key). The attached role will then be used by the StackState CloudWatch plugin to retrieve metrics from CloudWatch.
Set up IAM role for StackState on EC2
To set up an IAM role for the AWS StackPack to use, follow the instructions below.
Create a policy that allows the
AssumeRole
action for the resourcearn:aws:iam::*:role/StackStateAwsIntegrationRole
. This is the same policy as used for the Agent IAM role on EC2. Take note of the policy name.Create an EC2 instance role and attach the policy from the previous step.
Attach the newly created EC2 instance role to the EC2 instance where StackState is running.
![](https://docs.stackstate.com/~gitbook/image?url=https%3A%2F%2F476655100-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMFrVtmGIoEglKGQl329G%252Fuploads%252Fgit-blob-24535d9fc7d4881b4f2fe3858f81238f721684cd%252Fsts_on_ec2_aws_stp_03.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=62bb1253&sv=1)
See also
Last updated