Base64
The base64
method is the CloudFormation Fn::Base64 equivalent.
Example Snippet
resource("Instance", "AWS::EC2::Instance",
InstanceType: "t3.micro",
ImageId: "ami-0de53d8956e8dcf80",
UserData: base64("#!/bin/bash\necho hi")
)
Example Output
Resources:
Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t3.micro
ImageId: ami-0de53d8956e8dcf80
UserData:
Fn::Base64: |-
#!/bin/bash
echo hi
Back to Intrinsic Functions List.
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.