【发布时间】:2020-11-24 11:18:04
【问题描述】:
我在将 EnvironmentVariables 从 AWS Codepipeline 传递到 CodeBuild 时遇到问题。我能找到的关于这个主题的唯一文档是this AWS documentation,它提供了一个基本示例,但正如您在下面看到的,我需要一个导入的子值。所有尝试都给我错误:Value of property Configuration must be an object with String (or simple type) properties。
- Name: EmptyHostingBucket
Actions:
- Name: EmptyHostingBucket
RunOrder: 5
ActionTypeId:
Category: Build
Owner: AWS
Provider: CodeBuild
Version: 1
Configuration:
ProjectName: !Ref CodeBuildEmptyBucket
EnvironmentVariables:
- Name: HOSTING_BUCKET
Value:
Fn::ImportValue: !Sub "${ProjectName}-website-hosting-bucket"
InputArtifacts:
- Name: SourceArtifacts
OutputArtifacts:
- Name: BuildEmptyBucket
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-codepipeline aws-codebuild