A Glue job uses an S3 bucket and an IAM role.
Create and delete resources in the correct order without unnecessarily serializing the whole stack.
Which implementation is most appropriate?
Use Ref or GetAtt for inferred dependencies and add DependsOn only where CloudFormation cannot infer the relationship.
Detailed explanation
Resource references create inferred dependencies, while explicit dependencies cover relationships not visible in the template.
Resource references create inferred dependencies, while explicit dependencies cover relationships not visible in the template.
An object key does not control CloudFormation resource ordering.
An object key does not control CloudFormation resource ordering.
Statement order does not define the order of stack resource operations.
Statement order does not define the order of stack resource operations.
Unnecessary serialization slows deployments and can introduce dependency cycles.
Unnecessary serialization slows deployments and can introduce dependency cycles.
Check official documentation
Compare the following points with the official documentation.
CloudFormation Ref、GetAtt、DependsOn、循環依存の公式説明を確認する。
What to confirm
依存関係の自動推論と過剰な明示依存の影響を説明できる。
Key points
- CloudFormation
- Ref
- GetAtt
- DependsOn
Notes
- Environment: AWS公式DEA-C01試験ガイドと各サービスの公式ドキュメントの確認
- Confirm current AWS service behavior in the official DEA-C01 documentation.
Foundation review
Implicit dependency
References let CloudFormation infer many create, update, and delete relationships.
Cycle avoidance
Unnecessary explicit edges can serialize resources or create circular dependencies.