Open stevebott opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
This is not currently supported by AWS API https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ImportSourceCredentials.html
It seems to be supported now. I can do
resource "aws_codebuild_source_credential" "secret-example" {
auth_type = "SECRETS_MANAGER"
server_type = "GITHUB"
token = "arn:aws:secretsmanager:<region>:<account>:secret:github-secrets-XXXXXX"
}
https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ImportSourceCredentials.html also mentions we can put secrets manager arn as the token
Description
Allow CodeBuild Source Credentials Resource (aws_codebuild_source_credential) to leverage Secrets Manager or Parameter Store for the token, vs. requiring the token to be stored in the terraform code as plain text.
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
No response
Would you like to implement a fix?
No