{"id":20519951,"url":"https://github.com/yu-croco/aws_beginners_guide","last_synced_at":"2025-09-25T19:49:59.776Z","repository":{"id":41972512,"uuid":"286010641","full_name":"yu-croco/AWS_Beginners_Guide","owner":"yu-croco","description":"AWSにこれから入門される方のためのハンズオン用レポジトリ","archived":false,"fork":false,"pushed_at":"2025-05-16T16:34:27.000Z","size":906,"stargazers_count":35,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T16:44:38.679Z","etag":null,"topics":["aws","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/yu-croco.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-08T09:12:42.000Z","updated_at":"2025-05-06T13:23:53.000Z","dependencies_parsed_at":"2025-04-14T02:11:57.663Z","dependency_job_id":"d548fb24-3758-4057-a285-611dbaa2dcc6","html_url":"https://github.com/yu-croco/AWS_Beginners_Guide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yu-croco/AWS_Beginners_Guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-croco%2FAWS_Beginners_Guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-croco%2FAWS_Beginners_Guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-croco%2FAWS_Beginners_Guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-croco%2FAWS_Beginners_Guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yu-croco","download_url":"https://codeload.github.com/yu-croco/AWS_Beginners_Guide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-croco%2FAWS_Beginners_Guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276974778,"owners_count":25738497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"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":["aws","terraform"],"created_at":"2024-11-15T22:17:10.663Z","updated_at":"2025-09-25T19:49:59.759Z","avatar_url":"https://github.com/yu-croco.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Begginer's Guide\n\n## 概要\nAWSにこれから入門される方のためのハンズオン用レポジトリ。\n\nクラウドインフラを扱う上での重要な考え方を学ぶところから始まり、実際にインフラを構築するところまでをまとめている。\n\nAWSアカウントを持っている前提で進めていく。\n\n## セットアップ\nこのレポジトリでは[Terraform](https://www.terraform.io/)を使っていくので、以下の手順に沿ってTerraformが使えるように準備する。\nなお、AWSのアカウントは事前に用意していることを前提にしていますので、まだの方は調べてみてください。\n\n- AWS CLIの準備\n\n```\n$ brew install awscli\n$ aws --version\n# 以下のように出ればOK\naws-cli/2.1.30 Python/3.9.2 Darwin/20.3.0 source/x86_64 prompt/off\n```\n\n- AWS CLI Configを設定する\n  - 参考\n    - [設定の基本 - AWS Command Line Interface](https://docs.aws.amazon.com/ja_jp/cli/latest/userguide/cli-configure-quickstart.html)\n    - [AWS CLI のコンフィグファイルと環境変数とコマンドラインオプションで指定できる内容をまとめて確認してみた](https://dev.classmethod.jp/articles/aws-cli-configuration-file-env-option/)\n\n```\n$ aws configure\nAWS Access Key ID [None]: xxxxxxxx\nAWS Secret Access Key [None]: xxxxxxxx\nDefault region name [None]: ap-northeast-1\nDefault output format [None]: json\n```\n\n- TerraformのAWSアカウントを指定して、ローカルからAWS CLIを使えることを確認する\n\n```\n$ aws sts get-caller-identity --profile ${profile_name}\n{\n    \"UserId\": \"xxxxxxxxxxxxxxxx\",\n    \"Account\": \"01234567890123\",\n    \"Arn\": \"arn:aws:sts::01234567890123:xxxxxxxxxxxxx\"\n}\n```\n\n- Session Manager plugin for the AWS CLIをインストールする\n  - ハンズオンにおいてEC2に対してSSHする際に利用する\n  - 手順: [(Optional) Install the Session Manager plugin for the AWS CLI](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)\n\n- Terraformをインストールする\n  - Terraformはバージョン管理がダルイのでtfenvを使う\n\n```\n$ brew install tfenv\n$ tfenv\ntfenv 2.2.3\nUsage: tfenv \u003ccommand\u003e [\u003coptions\u003e]\n\nCommands:\n   install       Install a specific version of Terraform\n   use           Switch a version to use\n   uninstall     Uninstall a specific version of Terraform\n   list          List all installed versions\n   list-remote   List all installable versions\n   version-name  Print current version\n   init          Update environment to use tfenv correctly.\n   pin           Write the current active version to ./.terraform-version\n```\n\ntfenvがインストールできたらひとまず完了\nterraformを実際に使っていくのは[2_network](./README.md)からになる予定\n\n## 構成\n- 各ディレクトリー名の先頭に数字を振っており、数字が小さい方から進めていく\n\n```\n.\n├── 0_fundamental_concept    \u003c- クラウドインフラを使う上で知っておいて欲しい前提\n├── 1_infrastructure_as_code \u003c- インフラの（雑な）歴史とIaC\n├── 2_network                \u003c- VPC/subnet/EC2などの紹介とハンズオン\n├── 3_container              \u003c- Dockerコンテナの紹介とハンズオン\n├── 4_references             \u003c- （クラウド）インフラ周りの勉強をする上で役立つ情報源のサマリー\n└── README.md\n```\n\n## 免責事項\n当リポジトリに記載された内容は情報の提供のみを目的としています。\nしたがって、当リポジトリを用いた開発、運用は必ずご自身の責任と判断によって行ってください。\nこれらの情報による開発、運用の結果について、作者はいかなる責任も負いません。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyu-croco%2Faws_beginners_guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyu-croco%2Faws_beginners_guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyu-croco%2Faws_beginners_guide/lists"}