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
The reason will be displayed to describe this comment to others. Learn more.
Avoided the name environmentVariables because CodeBuildActionProps that extends codepipeline.CommonAwsActionProps and this CommonActionProps has already used a property with the same name and an error occurs if the name is used in this props.
To use the SecretsManager, you must add the following permissions to your pipeline service role:
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue"
],
"Resource": [
"SECRET_ARN"
]
}
The reason will be displayed to describe this comment to others. Learn more.
Originally, this abstract method was not made, but the concrete bind method was only created for SecretsManagerEnvironmentVariable. However, considering that support for PARAMETER_STORE may be added in the future, such as the one for CodeBuild, it is better to create the abstract method, so I did it this way. Otherwise, it would be necessary to implement the bind calling as follows. If more types are added in the future, the code will become even more complicated.
go-to-k
changed the title
feat(codepipeline): support environment variables for actions
feat(codepipeline): support environment variables for action
Oct 14, 2025
go-to-k
changed the title
feat(codepipeline): support environment variables for action
feat(codepipeline): support environment variables for actions
Oct 14, 2025
⚠️Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined. Please try merge from main to avoid findings unrelated to the PR.
⚠️Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined. Please try merge from main to avoid findings unrelated to the PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
N/A
Reason for this change
CodePipeline supports the Environment Variables in actions, but L2 Pipeline with actions doesn't support it.
SECRETS_MANAGERtype is only supported for the Commands action.Description of changes
Added
EnvironmentVariablewithPlaintextEnvironmentVariableandSecretsManagerEnvironmentVariable.Describe any new or updated permissions being added
Description of how you validated changes
Both unit tests and integ tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license