Usmanz
Usmanz

Reputation: 1

Passing cdk --context key=value using AWS Connector for GitHub

I am trying to pass the context value while using AWS Connector for GitHub code commit. I have two branches dev and main. If code is committed on the dev branch my cdk app should receive an environment variable with the value dev.

I don't want to declare these environment variables in my code. After getting the environment variable my stack setup resources accordingly. I am constructing a pipeline for dev and prod in cdk app. Or is there any other way to get the environment variable in cdk app?

Upvotes: 0

Views: 125

Answers (0)

Related Questions