Difference between revisions of "ValueFrom:"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
== [[AWS ECS]] ==
 
== [[AWS ECS]] ==
  
     [[secrets =]] [
+
 
 +
{{secrets valueFrom}}
 +
 
 +
 
 +
 
 +
 
 +
<code><nowiki>
 +
     secrets = [
 
       {
 
       {
         name      = "YOUR_SECRET"
+
         name      = "YOUR_NAME"
         valueFrom = "[[arn:aws:ssm]]:${var.aws_region}:${data.aws_caller_identity.current.account_id}:parameter/YOUR_PARAMETER"
+
         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: