-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Merge main and output * Fix structure * Rename chamber structur
- Loading branch information
Showing
3 changed files
with
37 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module "chamber_kms_key" { | ||
source = "git::https://github.com/cloudposse/terraform-aws-kms-key.git?ref=tags/0.1.0" | ||
namespace = "${module.identity.namespace}" | ||
stage = "${module.identity.stage}" | ||
name = "chamber" | ||
description = "KMS key for chamber" | ||
} | ||
|
||
output "chamber_kms_key_arn" { | ||
value = "${module.chamber_kms_key.key_arn}" | ||
description = "KMS key ARN" | ||
} | ||
|
||
output "chamber_kms_key_id" { | ||
value = "${module.chamber_kms_key.key_id}" | ||
description = "KMS key ID" | ||
} | ||
|
||
output "chamber_kms_key_alias_arn" { | ||
value = "${module.chamber_kms_key.alias_arn}" | ||
description = "KMS key alias ARN" | ||
} | ||
|
||
output "chamber_kms_key_alias_name" { | ||
value = "${module.chamber_kms_key.alias_name}" | ||
description = "KMS key alias name" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,23 +15,3 @@ provider "aws" { | |
module "identity" { | ||
source = "git::[email protected]:cloudposse/terraform-aws-account-metadata.git?ref=init" | ||
} | ||
|
||
module "chamber_kms_key" { | ||
source = "git::https://github.com/cloudposse/terraform-aws-kms-key.git?ref=tags/0.1.0" | ||
namespace = "${module.identity.namespace}" | ||
stage = "${module.identity.stage}" | ||
name = "chamber" | ||
description = "KMS key for chamber" | ||
} | ||
|
||
# Chamber user for CI/CD systems that cannot leverage IAM instance profiles | ||
# https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-access.html | ||
module "chamber_user" { | ||
source = "git::https://github.com/cloudposse/terraform-aws-iam-chamber-user.git?ref=tags/0.1.3" | ||
namespace = "${module.identity.namespace}" | ||
stage = "${module.identity.stage}" | ||
name = "chamber" | ||
attributes = ["codefresh"] | ||
kms_key_arn = "${module.chamber_kms_key.key_arn}" | ||
ssm_resources = ["${format("arn:aws:ssm:%s:%s:parameter/kops/*", module.identity.aws_region, module.identity.account_id)}"] | ||
} |
This file contains 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