-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #540 from ericzbeard/fix-524
Add Outputs to Pkl serialization, and fix formatting Pkl to Yaml with Pkl modules
- Loading branch information
Showing
7 changed files
with
142 additions
and
30 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
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
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
This file was deleted.
Oops, something went wrong.
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
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,16 @@ | ||
amends "@cfn/template.pkl" | ||
import "@cfn/cloudformation.pkl" as cfn | ||
import "@cfn/aws/s3/bucket.pkl" | ||
|
||
Resources { | ||
["Bucket"] = new bucket.Bucket { | ||
Type = "AWS::S3::Bucket" | ||
} | ||
|
||
} | ||
|
||
Outputs { | ||
["BucketName"] = new cfn.Output { | ||
Value = cfn.Ref("Bucket") | ||
} | ||
} |
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,9 @@ | ||
Resources: | ||
Bucket: | ||
Type: AWS::S3::Bucket | ||
Outputs: | ||
BucketName: | ||
Value: !Ref Bucket | ||
Export: | ||
Name: foo | ||
|