-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec32ecf
commit 160be7c
Showing
5 changed files
with
173 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
tests/unit/customizations/cloudformation/modules/output-expect.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Outputs: | ||
ExampleOutput: | ||
Value: | ||
Fn::GetAtt: | ||
- ContentBucket | ||
- Arn | ||
ExampleSub: | ||
Value: | ||
Fn::Sub: ${ContentBucket.Arn} | ||
ExampleGetSub: | ||
Value: | ||
Fn::Sub: ${ContentBucket.Arn} | ||
Resources: | ||
ContentBucket: | ||
Type: AWS::S3::Bucket | ||
Properties: | ||
BucketName: foo |
12 changes: 12 additions & 0 deletions
12
tests/unit/customizations/cloudformation/modules/output-module.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Parameters: | ||
Name: | ||
Type: String | ||
Resources: | ||
Bucket: | ||
Type: AWS::S3::Bucket | ||
Properties: | ||
BucketName: !Ref Name | ||
Outputs: | ||
BucketArn: !GetAtt Bucket.Arn | ||
BucketArnSub: !Sub ${Bucket.Arn} | ||
This comment has been minimized.
Sorry, something went wrong.
benbridts
|
||
|
12 changes: 12 additions & 0 deletions
12
tests/unit/customizations/cloudformation/modules/output-template.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Modules: | ||
Content: | ||
Source: ./output-module.yaml | ||
Properties: | ||
Name: foo | ||
Outputs: | ||
ExampleOutput: | ||
Value: !GetAtt Content.BucketArn | ||
ExampleSub: | ||
Value: !Sub ${Content.BucketArn} | ||
ExampleGetSub: | ||
Value: !GetAtt Content.BucketArnSub |
This file contains 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
I think their are three options here? This is how I think they should work (but I can see arguments for some other ways too)