{"id":19208597,"url":"https://github.com/heiwa4126/terraform-imauser-accesskey","last_synced_at":"2026-06-10T23:32:03.222Z","repository":{"id":47589177,"uuid":"516199007","full_name":"heiwa4126/terraform-imauser-accesskey","owner":"heiwa4126","description":"TerraformでIAMユーザを作りアクセスキーを得るサンプル。PGPキーがいる。","archived":false,"fork":false,"pushed_at":"2022-07-21T02:40:12.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-13T23:01:25.909Z","etag":null,"topics":["access-keys","aws-iam","example","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heiwa4126.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-21T02:34:53.000Z","updated_at":"2022-07-21T02:36:11.000Z","dependencies_parsed_at":"2022-09-06T08:53:18.705Z","dependency_job_id":null,"html_url":"https://github.com/heiwa4126/terraform-imauser-accesskey","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heiwa4126/terraform-imauser-accesskey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fterraform-imauser-accesskey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fterraform-imauser-accesskey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fterraform-imauser-accesskey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fterraform-imauser-accesskey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiwa4126","download_url":"https://codeload.github.com/heiwa4126/terraform-imauser-accesskey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fterraform-imauser-accesskey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34175887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access-keys","aws-iam","example","terraform"],"created_at":"2024-11-09T13:27:08.819Z","updated_at":"2026-06-10T23:32:03.201Z","avatar_url":"https://github.com/heiwa4126.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-imauser-accesskey\n\nTerraformでIAMユーザを作りアクセスキーを得るサンプル\n\nPGPキーがいる。なければ `gpg --gen-key`\n\n\n# 参考リンク\n\n- [Create AWS IAM User Login Profile with PGP encrypted password in Terraform | DevCoops](https://devcoops.com/create-aws-iam-user-login-profile-pgp-ecrypted-password-terraform/)\n- [Decrypt iam_user_login_profile password in Terraform | DevCoops](https://devcoops.com/decrypt-aws-iam-user-login-profile-password-terraform/)\n- [aws_iam_access_key | Resources | hashicorp/aws | Terraform Registry](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_access_key)\n\n\n# 動かし方\n\nまず\n```bash\ngpg --output pgp/my-public-key.gpg --export heiwa4126  # IDは自分のに変える\n```\n\nで、公開鍵をエクスポートしておく。\n\nさらに\n```bash\nterraform init\nterraform apply\n```\n\nで、デプロイ。正常終了したら\n\n```bash\n./decode_secret.sh\n```\n\nで、GPGのパスフレーズ入れるとデコードされる。\n\n\n# メモ\n\nいらんコードがけっこう入ったままでスイマセン。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Fterraform-imauser-accesskey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiwa4126%2Fterraform-imauser-accesskey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Fterraform-imauser-accesskey/lists"}