Difference between revisions of "ValueFrom:"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
== [[AWS ECS]] == | == [[AWS ECS]] == | ||
+ | |||
+ | {{secrets valueFrom}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <code><nowiki> | ||
secrets = [ | secrets = [ | ||
{ | { | ||
− | name = " | + | name = "YOUR_NAME" |
− | valueFrom = " | + | valueFrom = "${var.yourvar}" == "" ? "arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/YOUR_PARAMETER${upper(var.env)}_YOUR_PASSWORD" : "arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/YOUR_SECOND_PASSWORD" |
} | } | ||
], | ], | ||
+ | </nowiki></code> | ||
+ | |||
== Related == | == Related == | ||
Line 24: | Line 33: | ||
== See also == | == See also == | ||
− | * {{ | + | * {{ECR}} |
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 11:08, 18 May 2023
AWS ECS[edit]
secrets = [ { name = "YOUR_SECRET" valueFrom = "arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/YOUR_PARAMETER" } ],
secrets = [
{
name = "YOUR_NAME"
valueFrom = "${var.yourvar}" == "" ? "arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/YOUR_PARAMETER${upper(var.env)}_YOUR_PASSWORD" : "arn:aws:ssm:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/YOUR_SECOND_PASSWORD"
}
],
Related[edit]
env:
- Kubernetes Downward API
Kind: EnvVar
secrets:
aws ecs register-task-definition
aws ssm put-parameter
See also[edit]
Advertising: