A collection of AWS CloudFormation and Terraform templates for practice and testing purposes. This repository contains various infrastructure-as-code examples that can be used by the OpenOps platform for validation, testing, and remediation scenarios.
Each example is contained in its own folder with:
- Infrastructure-as-code template (CloudFormation YAML or Terraform)
- README with description and usage instructions
Location: openops-app-role-aws/terraform/
Terraform equivalent of the OpenOpsApp CloudFormation role stack. Creates the OpenOpsApp IAM role and permissions used by the OpenOps app to connect to your AWS account, with optional Cost and Usage Report setup, optimization write permissions, and an optional IAM user.
Use this template to: Create the AWS IAM role for an OpenOps connection using Terraform instead of CloudFormation.
Location: aws-benchmark-permissions/
Creates an IAM role with the necessary permissions for the OpenOps AWS Benchmark feature. This template provisions read-only access to AWS Compute Optimizer, resource metadata (EC2, RDS, ELB, DynamoDB, Lambda, ECS), and the Pricing API.
Use this template to: Set up secure cross-account access for OpenOps to run cost optimization benchmarks on your AWS infrastructure.
Location: s3-bucket-standard-tiering/
Creates an S3 bucket with standard configuration and security best practices.
To deploy any example stack:
aws cloudformation create-stack \
--stack-name <stack-name> \
--template-body file://<path-to-template.yml> \
--region <aws-region>To delete a stack:
aws cloudformation delete-stack \
--stack-name <stack-name> \
--region <aws-region>When adding new examples:
- Create a descriptive folder name
- Include a CloudFormation template in YAML format
- Add a README.md explaining the template's purpose
- Update this main README with a reference to the new example