We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78faf8e + acbfead commit aa1c584Copy full SHA for aa1c584
1 file changed
terraform/terraform.tf
@@ -20,7 +20,7 @@ terraform {
20
## ECR
21
22
resource "aws_ecr_repository" "api" {
23
- name = "${var.app_name}"
+ name = "${var.app_name}-${terraform.workspace}"
24
}
25
26
## CodePipeline
@@ -78,7 +78,7 @@ data "template_file" "buildspec" {
78
79
vars {
80
aws_account_id = "${data.aws_caller_identity.current.account_id}"
81
- image_repo_name = "${var.app_name}"
+ image_repo_name = "${var.app_name}-${terraform.workspace}"
82
rails_env = "${var.rails_env}"
83
task_name = "dss-infrastructure-${terraform.workspace}-api"
84
0 commit comments