Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make deploy a slice, use it to config multiple environments #12

Merged
merged 3 commits into from
May 9, 2024

Conversation

hbjydev
Copy link
Member

@hbjydev hbjydev commented Apr 21, 2024

Changes

  • Adds the ability to configure multiple environments to deploy to with the parameters.deploy configuration.

Example Config

---
projectName: hello
template: go-lambda
parameters:
  deploy:
    - environment: dev
    - environment: prod

Generates as:

deploy:
  - environment: dev
    account: '677459762413'
    region: 'us-west-2'
    roleArn: 'arn:aws:iam::677459762413:role/altf4llc-gha-hello-deploy-dev'
  - environment: prod
    account: '677459762413'
    region: 'us-west-2'
    roleArn: 'arn:aws:iam::677459762413:role/altf4llc-gha-hello-deploy-prod'

Note that account, region and roleArn are defaulted and/or customized by other config parameters like projectName.

@hbjydev hbjydev force-pushed the feature/deploy-environment-updates branch from 30b45f8 to d433d03 Compare May 9, 2024 19:11
@hbjydev hbjydev merged commit 2ec29ea into main May 9, 2024
3 checks passed
@hbjydev hbjydev deleted the feature/deploy-environment-updates branch May 9, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant