You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If specifying the resource_file in the resource section of the manifest.yaml file with double quotes, the Build stage in the CodePipeline breaks. As per the AWS Documentation on the matter, this field is of type String therefore they should be allowed. Moreover, quotes are not explicitly prohibited.
More specifically, given a manifest.yaml as follows:
The CodeBuild action fails with the following message:
ERROR: File "templates/infrastructure.template" does not exist
^^^ Caught an error: Setting exit status flag to 1 ^^^
Upon closer inspection, this happens in the run-validation.sh script when it checks each file in the manifest to make sure it exists (in version 2.6.0 it begins in line 90). Here, the double quotes are propagated into the file name resulting into a path such as: /current/path/custom-control-tower-configuration/"templates/infrastructure.template".
Suggested improvement
Add double quotes sanitization, such as: file_name="${file_name//\"/}" or add some error message explaining that double quotes are not allowed in the resource_file property in the manifest.
The text was updated successfully, but these errors were encountered:
@riccardo94p Thanks for reaching out.
I have created an internal backlog to address this.
As a workaround we recommend not using quotes for specifying file name.
Problem
If specifying the
resource_file
in the resource section of themanifest.yaml
file with double quotes, the Build stage in the CodePipeline breaks. As per the AWS Documentation on the matter, this field is of type String therefore they should be allowed. Moreover, quotes are not explicitly prohibited.More specifically, given a
manifest.yaml
as follows:The CodeBuild action fails with the following message:
Upon closer inspection, this happens in the
run-validation.sh
script when it checks each file in the manifest to make sure it exists (in version 2.6.0 it begins in line 90). Here, the double quotes are propagated into the file name resulting into a path such as:/current/path/custom-control-tower-configuration/"templates/infrastructure.template"
.Suggested improvement
Add double quotes sanitization, such as:
file_name="${file_name//\"/}"
or add some error message explaining that double quotes are not allowed in theresource_file
property in the manifest.The text was updated successfully, but these errors were encountered: