Last active
May 6, 2018 12:49
-
-
Save hayajo/2cf0349dbde7cf106060d09cd59e6b57 to your computer and use it in GitHub Desktop.
AWS::ECS::TaskDefinitionでリビジョンを含まないARNをエクスポートする
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
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
EnvironmentName: | |
Type: String | |
Default: "MyApp" | |
# ... | |
Resources: | |
ECSTaskDefinition: | |
Type: AWS::ECS::TaskDefinition | |
# ... | |
Outputs: | |
ECSTaskDefinitionArn: | |
Value: | |
Fn::Join: | |
- "/" | |
- - Fn::Select: | |
- 0 | |
- Fn::Split: | |
- "/" | |
- !Ref ECSTaskDefinition | |
- !Sub "${EnvironmentName}" | |
Export: | |
Name: !Sub "${EnvironmentName}-ECSTaskDefinitionArn" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment