I received a notification from AWS stating, “We identified EC2 instances in your account that have been retrieving resource metadata information from CloudFormation stacks in your account that are outside of the stack from which the instances were created.”
The notification then went on to list some example instances and which stacks they had accessed. E.g. (instance IDs and stack names changed),
- i-0493cb18192ba2444 calls mystack-env2-db-test
- i-05c2d6d19d256b255 calls mystack-env2-net
However, when I checked the instances and stacks they listed in the e-mail, each stack is in fact the same stack that created the instance. Is there anything else that might be making cross-stack requests that I should investigate? To the best of my knowledge, the only component that is making such requests is cfn-init, which is called from userdata and only references the creating stack.
Related discussions:
- New Intel T8i instance type
- Best way to implement CI/CD on AWS using CloudFormation with Azure DevOps?
- How to work around security group/rules limits?
- Using Amazon Q Developer both CLI and extension, amazing for AWS infra/debugging, but code review feels like a gap. Anyone else?
- Why are EC2 Mac instances so expensive & who are they actually for?