aws-cloudformation / aws-cloudformation-macros

This repository hosts examples of AWS CloudFormation macros.
Apache License 2.0
83 stars 49 forks source link

Correct StripFrom Right #19

Closed edenhare closed 4 months ago

edenhare commented 2 years ago

This commit implements a change to detect with StripFrom Right exists in the parameters and return the fragment. It also implements a change where StripFrom is in the parameters but neither Left or Right is, and returns a failure.

To test the change, deploy the macro and launch the string_example.yaml template.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

andyloughran commented 1 year ago

https://github.com/awslabs/aws-cloudformation-templates/blob/master/aws/services/CloudFormation/MacrosExamples/StringFunctions/string.yaml

The templates have moved to a new repo @edenhare - you may want to move this PR to the new location.

ericzbeard commented 4 months ago

We are archiving this repository in favor of similar content located here: https://github.com/aws-cloudformation/aws-cloudformation-templates/tree/main/aws/services/CloudFormation/MacrosExamples