{"id":19594189,"url":"https://github.com/julioaranajr/aws-clic-setup","last_synced_at":"2026-06-10T02:31:24.439Z","repository":{"id":93961872,"uuid":"542988671","full_name":"julioaranajr/aws-clic-setup","owner":"julioaranajr","description":"Repository to Setup AWS CLI and Exsercies","archived":false,"fork":false,"pushed_at":"2023-03-21T20:37:52.000Z","size":587,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T14:21:40.088Z","etag":null,"topics":["aws","aws-iam","aws-iam-policies","aws-profile","awscli"],"latest_commit_sha":null,"homepage":"","language":null,"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/julioaranajr.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}},"created_at":"2022-09-29T07:49:06.000Z","updated_at":"2023-03-21T20:04:50.000Z","dependencies_parsed_at":"2024-11-04T16:47:07.139Z","dependency_job_id":"ecf087f3-e51b-498f-9a27-8d692d40a06f","html_url":"https://github.com/julioaranajr/aws-clic-setup","commit_stats":null,"previous_names":["julioaranajr/aws-clic-setup","julioaranajr/aws_cli_setup_labs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/julioaranajr/aws-clic-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2Faws-clic-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2Faws-clic-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2Faws-clic-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2Faws-clic-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julioaranajr","download_url":"https://codeload.github.com/julioaranajr/aws-clic-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julioaranajr%2Faws-clic-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34134633,"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":["aws","aws-iam","aws-iam-policies","aws-profile","awscli"],"created_at":"2024-11-11T08:42:30.170Z","updated_at":"2026-06-10T02:31:24.418Z","avatar_url":"https://github.com/julioaranajr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aws Cli Setup Labs\nRepository to Setup AWS CLI\n\n# AWS Lab\n\nGo to [Cloudreach AWS Vending Machine](https://aws.vending-machine.cloudreach.io/home/welcome) to request a Personal Development Lab.\nThis should take a few minutes for the request to be process and receive an email with your access details.\n\n### Set up AWS CLI on your mac\n\n```\nbrew install awscli\n```\n\nTest that awscli is working:\n\n```\naws --version\n```\n\n### Access AWS Lab Account\n\nLabs can be access from the [Cloudreach OneLogin Portal](https://cloudreach.onelogin.com) and click on the `AWS Lab` icon.\n\n### Region\n\nFor consistency and quick access, let set the region to `eu-central-1`.\n\n### Switch Role\n\nAfter the account has been created, you will receive the account ID and the appropriate role to switch into to access resources on your account.\n\nOn the top right of the console, click on your Username to show the drop-down menu and click on `Switch Roles`. Fill in the necessary information\n\n```\nProvided for Cloudreach AWS Vending Machine by email\n\nAccount: \u003caccount_id\u003e provided for Cloudreach AWS Vending Machine by email\nRole: LabUserAdmin\nDisplay Name: LabUserAdmin\n```\n\n### Create a new user for programmatical access for AWS Identity and Access Management (IAM)\n```\nAWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources. \nWith IAM, you can centrally manage permissions that control which AWS resources users can access. \nYou use IAM to control who is authenticated (signed in) and authorized (has permissions) to use resources.\n```\n\n* Go to AWS IAM \u003e User Groups\n* Click on `Create group`\n* Set the user group name\n* Scroll down and Attach permissions policies \n* Search for the policy name `AdministratorAccess` Type `AWS managed - job function` select the box, then click on `Create group`\n* Go to AWS IAM \u003e Users\n* Click on `Add users`\n* Set your user name then click on `Next`\n* For `Set Permissions`, select the `Add user to group`\n* Search for `User groups` and check `Administrator`the selection box, then click on `Next`\n* Set Tags tags then click on `Add new tag`\n* Enter Key=Name Value=\u003cyourname\u003e e.g. Value=Will Smith\n* then click on `Add new tag`\n* Enter Key=Company Value=\u003cyourcompany\u003e e.g. Value=Cloudreach\n* then click on `Add new tag`\n* Enter Key=Profile Value=\u003cyourjobprofile\u003e e.g. Value=Cloud Systems Developer\n* then click on `Add new tag`\n* Enter Key=Location Value=\u003cyourlocation\u003e e.g. Value=Germany\n* Review the details and click on `Create user`\n* Go to AWS IAM \u003e Users\n* Click on your user name then press `Security credential Tab`\n* Scroll down and press `Create access keys`\n* Select Command Line Interface (CLI) selection box\n* Select the box with `I understand the above recommendation and want to proceed to create an access key.`\n* No Tag is necesary then click on `Create access key`\n\n```\nYou should now have the `access_key` and `secret_access_key` displayed.\nThis is the only time that the secret access key can be viewed or downloaded. \nYou cannot recover it later. However, you can create a new access key any time.\n```\n  \nAccess key best practices\n* Never store your access key in plain text, in a code repository, or in code.\n* Disable or delete access key when no longer needed.\n* Enable least-privilege permissions.\n* Rotate access keys regularly.\n* For more details about managing access keys, see the [Best practices for managing AWS access keys](https://docs.aws.amazon.com/console/general/access-keys-best-practices)\n\n### AWS config \u0026 credentials\n\nCheck that the folder `~/.aws` exists and create it if it does not. Open or create a new file in `~/.aws/config`. The config file contains the AWS account configurations for each user/role you will need to access an account.\n\n```\nvi ~/.aws/config\n```\n\nAdd the lines:\n```\n[Cloudreach]\nregion = eu-west-1\naccount = 123456789\nprofile = talent-academy\nrole = LabUserAdmin\noutput = json\n```\n\nOpen or create a new file in `~/.aws/credentials`. This is where you will save both the ACCESS and SECRET key to your account with a profile name.\n\n```\nvi ~/.aws/credentials\n```\n\n```\n[talent-academy]\naws_access_key_id = \u003cACCESS_KEY\u003e\naws_secret_access_key = \u003cSECRET_ACCESS_KEY\u003e\n```\n\n### Export the required profile\n\nThe aws cli requires you to specify which configuration profile you wish to use everytime you execute the command. Instead of typing the profile name each time, you can expose it in the `Environment Variable` of your current terminal session by typing this command:\n\n```\nexport AWS_PROFILE=\"talent-academy\"\nexport AWS_DEFAULT_REGION=\"eu-west-1\"\n```\n\nNow each time the cli is ran, both variables will be used as paramters to the command to access the right configuration.\n\n### Test your access\n\nRun the following command to check that your access and configuration are working:\n\n```\naws iam list-users\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulioaranajr%2Faws-clic-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulioaranajr%2Faws-clic-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulioaranajr%2Faws-clic-setup/lists"}