All skills
setting-up-ec2-instance-profiles
Create an IAM role and instance profile, attach it to an EC2 instance, and verify temporary credentials.
- Part of aws/agent-toolkit-for-aws
- 7.3k installs
- Security & Privacy · Security defense
When to use it
Your EC2 instance needs to call S3, DynamoDB, or SQS but still relies on hardcoded access keys in config files or environment variables.
For example
You say
Use the setting-up-ec2-instance-profiles skill to give my EC2 instance i-0abc123 read access to the S3 bucket my-app-uploads, replacing the access keys in its config.
You get
- Least-privilege IAM role
- Attached instance profile
- Credential verification steps
How it works
- Replacing an existing profile prompts before disassociating it.
- New credentials can take 30–60 seconds to appear, so apps may need a restart.
More Security defense skills
See all- gws-modelarmor31.7kChecks user-generated content for safety using Google Model Armor filters.
- gws-modelarmor-create-template31.6kCreates a new Google Model Armor template for content safety filtering.
- security-requirement-extraction26.9kTurns threat models and business context into concrete security requirements, user stories, and test cases.
- stride-analysis-patterns22.8kApplies the STRIDE method to identify security threats and document them systematically.
Also in this pack
- aws-iam11.9kCorrects common IAM mistakes and generates roles and baseline policies from your code or Terraform plan.
- aws-observability11.9kInvestigates root causes and sets up CloudWatch, X-Ray tracing, alarms and dashboards for your AWS services.
- aws-cdk11.2kWrites, deploys and troubleshoots AWS infrastructure as code using CDK with TypeScript or Python.
- aws-containers11.2kBuilds and deploys containerized workloads on EKS, ECS, Fargate, ECR and Elastic Beanstalk.