-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathapp-on-lambda-with-atmos.yaml
More file actions
39 lines (35 loc) · 1.99 KB
/
Copy pathapp-on-lambda-with-atmos.yaml
File metadata and controls
39 lines (35 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
workflows:
all:
steps:
- command: workflow init/artifact-bucket -f quickstart/app/app-on-lambda-with-atmos
- command: workflow init/app-on-lambda-with-atmos -f quickstart/app/app-on-lambda-with-atmos
- command: workflow deploy/github-oidc-role -f quickstart/app/app-on-lambda-with-atmos
- command: workflow deploy/artifact-bucket -f quickstart/app/app-on-lambda-with-atmos
init/artifact-bucket:
description: |
This workflow deploys the artifact bucket for the app-on-lambda-with-atmos workflow.
steps:
- command: terraform deploy s3-bucket/github-action-artifacts -s core-us-east-1-artifacts -var "privileged_principal_arns=[]"
deploy/artifact-bucket:
description: |
This workflow deploys the artifact bucket for the app-on-lambda-with-atmos workflow.
steps:
- command: terraform deploy s3-bucket/github-action-artifacts -s core-us-east-1-artifacts
deploy/github-oidc-role:
description: |
This workflow deploys the github-oidc-role for the app-on-lambda-with-atmos workflow.
steps:
- command: terraform deploy github-oidc-role/lambda-publish -s core-gbl-artifacts
- command: terraform deploy github-oidc-role/app-on-lambda-with-atmos -s plat-gbl-dev
- command: terraform deploy github-oidc-role/app-on-lambda-with-atmos -s plat-gbl-staging
- command: terraform deploy github-oidc-role/app-on-lambda-with-atmos -s plat-gbl-prod
init/app-on-lambda-with-atmos:
description: Initializes SSM parameters for app-on-lambda-with-atmos, these are not valid until the github actions run to update the values.
steps:
- type: shell
name: setup ssm params
command: |-
profiles=( "acme-plat-gbl-dev-admin" "acme-plat-gbl-sandbox-admin" "acme-plat-gbl-staging-admin" "acme-plat-gbl-prod-admin" )
for profile in ${profiles[@]} ; do
aws --profile $profile ssm put-parameter --name /lambda/app-on-lambda-with-atmos/tag --value 0.0.0 --type String --overwrite
done