Difference between revisions of "ValueFrom:"

From wikieduonline
Jump to navigation Jump to search
 
Line 10: Line 10:
  
 
  {{secrets valueFrom}}
 
  {{secrets valueFrom}}
 +
 +
 +
 +
 +
<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 ==
 
== Related ==

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: