This is my codepipeline deploy stage:
- Name: Deploy-Dev
Actions:
- Name: Deploy
ActionTypeId:
Category: Build
Owner: AWS
Version: 1
Provider: CodeBuild
InputArtifacts:
- Name: MyCfnBuildSpec
- Name: MyCfnCode
Configuration:
PrimarySource: MyCfnBuildSpec
ProjectName: !Ref Deploy
EnvironmentVariables: !Sub '[
{"type":"PLAINTEXT","name":"APP", "value":"${ProjName}"},
{"type":"PLAINTEXT","name":"APPENV", "value":"${AppEnv}"},
{"type":"PLAINTEXT","name":"NEXUS_GROUP_ID", "value":"${NexusGroupId}"},
{"type":"PLAINTEXT","name":"AWS_DEFAULT_REGION", "value":"${AWS::Region}"},
{"type":"PLAINTEXT","name":"TENANT_ACC_ID", "value":"{{resolve:ssm:/delta/tooling/si/accountid:1}}"},
{"type":"PLAINTEXT","name":"TEMPLATE_NAME", "value":"${CfnTemplateName}"},
{"type":"PLAINTEXT","name":"LOCALCONTEXTPATH", "value":"${LocalContextPath}"},
{"type":"PLAINTEXT","name":"ODEFlghtIID", "value":"${ODEFlghtIID}"},
{"type":"PLAINTEXT","name":"ODEFlghtSecrt", "value":"${ODEFlghtSecrt}"},
{"type":"PLAINTEXT","name":"ODEgateID", "value":"${ODEgateID}"},
{"type":"PLAINTEXT","name":"ODEgateSecrt", "value":"${ODEgateSecrt}"},
{"type":"PLAINTEXT","name":"MsgmngtID", "value":"${MsgmngtID}"},
{"type":"PLAINTEXT","name":"MsgMngtsecrt", "value":"${MsgMngtsecrt}"},
{"type":"PLAINTEXT","name":"GIT_COMMIT_ID", "value":"#{GitlabCustomSource.commit_id}"}]'
RunOrder: 2
The exact error I am getting is
ActionConfiguration Map value must satisfy constraint: [Member must have length less than or equal to 1000, Member must have length greater than or equal to 1] (Service: AWSCodePipeline; Status Code: 400; Error Code: ValidationException; Request ID: c6fe0776-5582-4d0d-a95d-64f7bf34f87e; Proxy: null)
How can I resolve this issue? Is there any other way we can pass the parameter values to cloudformation template?