Improve Deployment Ordering Documentation#746
Merged
Dan Miller (milldr) merged 1 commit intomasterfrom Apr 24, 2025
Merged
Conversation
|
|
Ben (Benbentwo)
approved these changes
Apr 24, 2025
| Deploy CloudTrail and the the CloudTrail bucket: | ||
|
|
||
| <AtmosWorkflow workflow="deploy" fileName="baseline" /> | ||
| <AtmosWorkflow workflow="deploy/cloudtrail" fileName="baseline" /> |
There was a problem hiding this comment.
FYI when we run this now Dan Miller (@milldr) we just tried running this .. fyi with our version of workflows delivered we don't have this workflow
√ : [superadmin] (HOST) workspace ⨠ atmos workflow deploy/cloudtrail -f baseline
Invalid Workflow Name
No workflow exists with the name deploy/cloudtrail
Member
Author
There was a problem hiding this comment.
Yes you wont have any workflow updates your version of workflows since they exist in your repo. This is all you need to add
dont forget to change the environment to your default
# stacks/workflows/baseline.yaml
- command: workflow vendor -f baseline
- command: workflow init/tfstate -f baseline
- command: workflow deploy/tfstate -f baseline
- - command: workflow deploy -f baseline
+ - command: workflow deploy/cloudtrail -f baseline
+ - command: workflow deploy/ecr -f baseline
vendor:
description: Vendor baseline layer components.
@@ -36,9 +37,13 @@ workflows:
steps:
- command: terraform deploy tfstate-backend --stack core-use1-root
- deploy:
+ deploy/cloudtrail:
description: Start AWS Cloudtrail in audit and root accounts to track changes across the org.
steps:
- command: terraform deploy cloudtrail-bucket -s core-use1-audit
- command: terraform deploy cloudtrail -s core-gbl-root
+ deploy/ecr:
+ description: Deploy ECR in the artifacts account to use as our container registry
+ steps:
- command: terraform deploy ecr -s core-use1-artifactshere's the whole thing
workflows:
all:
description: run all workflows
steps:
- command: workflow vendor -f baseline
- command: workflow init/tfstate -f baseline
- command: workflow deploy/tfstate -f baseline
- command: workflow deploy/cloudtrail -f baseline
- command: workflow deploy/ecr -f baseline
vendor:
description: Vendor baseline layer components.
steps:
- command: vendor pull --component account
- command: vendor pull --component account-map
- command: vendor pull --component account-quotas
- command: vendor pull --component account-settings
- command: vendor pull --component cloudtrail
- command: vendor pull --component cloudtrail-bucket
- command: vendor pull --component ecr
- command: vendor pull --component tfstate-backend
init/tfstate:
description: Provision Terraform State Backend for initial deployment.
steps:
- command: terraform deploy tfstate-backend -var=access_roles_enabled=false --stack core-use1-root --auto-generate-backend-file=false
- command: until aws s3 ls acme-core-use1-root-tfstate; do sleep 5; done
type: shell
- command: terraform deploy tfstate-backend -var=access_roles_enabled=false --stack core-use1-root --init-run-reconfigure=false
deploy/tfstate:
description: >-
Deploy Terraform State Backend.
Finalize Terraform State Backend access, which requires AWS Teams to be deployed first.
steps:
- command: terraform deploy tfstate-backend --stack core-use1-root
deploy/cloudtrail:
description: Start AWS Cloudtrail in audit and root accounts to track changes across the org.
steps:
- command: terraform deploy cloudtrail-bucket -s core-use1-audit
- command: terraform deploy cloudtrail -s core-gbl-root
deploy/ecr:
description: Deploy ECR in the artifacts account to use as our container registry
steps:
- command: terraform deploy ecr -s core-use1-artifacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
why
references