Skip to content

Repository files navigation

CloudFormation Examples

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.

Repository Structure

Each example is contained in its own folder with:

  • Infrastructure-as-code template (CloudFormation YAML or Terraform)
  • README with description and usage instructions

Examples

OpenOps App IAM Role (Terraform)

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.

AWS Benchmark Permissions

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.

S3 Bucket with Standard Configuration

Location: s3-bucket-standard-tiering/

Creates an S3 bucket with standard configuration and security best practices.

Usage

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>

Contributing

When adding new examples:

  1. Create a descriptive folder name
  2. Include a CloudFormation template in YAML format
  3. Add a README.md explaining the template's purpose
  4. Update this main README with a reference to the new example

About

Example of CloudFormation stacks for OpenOps to remediate

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages