Difference between revisions of "ValueFrom:"

From wikieduonline
Jump to navigation Jump to search
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{lc}}
  
 +
* <code>[[fieldRef]]</code>
 +
* <code>[[FieldPath]]</code>
 +
* <code>[[secretKeyRef]]</code>
  
  
[[FieldPath]]
+
== [[AWS ECS]] ==
  
  
  [[env:]]
+
  {{secrets valueFrom}}
  
{{K8s}}
+
 
 +
 
 +
 
 +
<code><nowiki>
 +
    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"
 +
      }
 +
    ],
 +
</nowiki></code>
 +
 
 +
 
 +
== Related ==
 +
* <code>[[Kubernetes, env:|env:]]</code>
 +
* [[Kubernetes Downward API]]
 +
* <code>[[Kind: EnvVar]]</code>
 +
* <code>[[secrets:]]</code>
 +
* <code>[[aws ecs register-task-definition]]</code>
 +
* <code>[[aws ssm put-parameter]]</code>
 +
 
 +
== See also ==
 +
* {{ECR}}
 +
 
 +
[[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]

See also[edit]

Advertising: