aws-codebuild

Pass AWS CodeBuild IAM Role inside Docker container [unable to locate credentials]

强颜欢笑 提交于 2020-12-15 04:26:16
问题 The role configured on CodeBuild project works fine with the runtime environment but doesn't work when we run a command from inside the container, it says "unable to locate credentials". Let me know how can we use the role out of the box inside the container. 回答1: You can make use of credential source "EcsContainer" to assume role seamlessly without having to export new credentials in your buildspec.yml. credential_source - The credential provider to use to get credentials for the initial

Pass parameters from AWS lambda to AWS CodePipeline

佐手、 提交于 2020-12-13 04:16:50
问题 I have a lambda that is initiating a CodePipeline execution via the AWS SDK startPipelineExecution function. Is there any mechanism available to pass a parameter to the CodePipeline build so that it may use the value within the CodeBuild build as an environment variable? 回答1: Currently CodePipeline does not provide any functionality for passing parameters into the Source Stage. Depending on the CodePipeline setup, I would look into one of the following: From your Lambda function, save the

Pass parameters from AWS lambda to AWS CodePipeline

橙三吉。 提交于 2020-12-13 04:16:25
问题 I have a lambda that is initiating a CodePipeline execution via the AWS SDK startPipelineExecution function. Is there any mechanism available to pass a parameter to the CodePipeline build so that it may use the value within the CodeBuild build as an environment variable? 回答1: Currently CodePipeline does not provide any functionality for passing parameters into the Source Stage. Depending on the CodePipeline setup, I would look into one of the following: From your Lambda function, save the