简体   繁体   中英

Terraform create a secret in aws secret manager

i would like create a secret with secret manager aws

more precisely create a secret for docker registry.

I would like to use terraform for that but i don't find a good code for that.

Does anyone have a concrete example

在此处输入图像描述

Please follow this link for extensive information about SSM though terraform

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter

You can use the following example

'resource "aws_ssm_parameter" "secret" {
   name        = "/production/database/password/master"
   description = "The parameter description"
   type        = "SecureString"
   value       = "secret_value"
   
   tags = {
   environment = "production"
   }
 }'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM