Trouble including property variables in my codepipeline cloudformation template

0

I keep having this error CREATE_FAILED AWS::CodePipeline::Pipeline CodePipelineTest Encountered unsupported property Value deploying this template

CodePipelineTest: Type: AWS::CodePipeline::Pipeline Properties: Name: Ref: PipelineName1 Variables: - Name: Version Value: test And also at the build stage of the same template i have been getting error **The following pipeline execution variables are referencing a namespace that does not exist ** [{"name":"VERSION","value":"#{variables.version}","type":"PLAINTEXT"}]

Any help will be appreciated

asked 17 days ago130 views
1 Answer
1

Hello.

You will probably need to change the template as below.
The template you are using defines something called "Ref:", which is incorrect.
I think the correct name is "!Ref".
By setting it to "!Ref", you can pass the "PipelineName1" parameter to "Name".

CodePipelineTest: 
  Type: AWS::CodePipeline::Pipeline 
  Properties: 
    Name: !Ref PipelineName1 # <-- edit
    Variables: 
      - Name: Version 
        Value: test
profile picture
EXPERT
answered 16 days ago
profile picture
EXPERT
reviewed 16 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions