diff options
author | clarkzjw <[email protected]> | 2023-01-01 21:30:02 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-01 21:30:02 -0800 |
commit | 246d8da4b825d6a622a4d9efbcf7f0d3b3724222 (patch) | |
tree | 895b5bec1507fa87cf0d3145ee00a9c488b96dce /jinwei.me/infra/dockerhub.tf | |
parent | 1da9d7731b8cda1f433bb5b33a3922716844b1bb (diff) | |
parent | 999e9e97d314e1702fa455abd9526042ef90b09d (diff) | |
download | jinwei.me-246d8da4b825d6a622a4d9efbcf7f0d3b3724222.tar.gz |
Merge pull request #2 from clarkzjw/bean.jinwei.me
infra: add docker username and token into aws ssm
Diffstat (limited to 'jinwei.me/infra/dockerhub.tf')
-rw-r--r-- | jinwei.me/infra/dockerhub.tf | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jinwei.me/infra/dockerhub.tf b/jinwei.me/infra/dockerhub.tf new file mode 100644 index 0000000..00a3bf2 --- /dev/null +++ b/jinwei.me/infra/dockerhub.tf | |||
@@ -0,0 +1,11 @@ | |||
1 | resource "aws_ssm_parameter" "dockerhub_username" { | ||
2 | name = "/${local.name}/docker/username" | ||
3 | type = "SecureString" | ||
4 | value = var.dockerhub_username | ||
5 | } | ||
6 | |||
7 | resource "aws_ssm_parameter" "dockerhub_token" { | ||
8 | name = "/${local.name}/docker/token" | ||
9 | type = "SecureString" | ||
10 | value = var.dockerhub_token | ||
11 | } | ||