Skip to content

psarvaiya/cfautochangeset

Repository files navigation

Introduction

This repo automates the execution of change sets on PR approval to main/master branch

How to ??

1. Configure AWS credentials

Create a role to assume OIDC identity provider

We have already added a cloudformation template oidc-cloudformation.yaml

Execute on AWS cloudformation, it will create necessary resources.

  1. Provide the name of your GitHub organization and repo

image

  1. OIDC provider is created

image

  1. Role is created. You can add necessary permission to the role, as per the resources getting created by cloudformation.

image

2. Add region and role as secret

AWS_REGION and AWS_ROLE

image

3. Update the parameters as required in parameters-dev.json

[
    {
        "ParameterKey":"S3BucketName",
        "ParameterValue":"my-s3-bucket"
    },
    {
        "ParameterKey":"SelectStage",
        "ParameterValue":"dev"
    }
]


4. Provide the name of change sets in changeset.name

NOTE Addedcf-template.yaml for reference. Automation CI workflow is present at .github/workflows/ci.yaml

5. You can also download the artifacts of every run

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%