{"id":27086607,"url":"https://github.com/al3xdiaz/code-infrastructure","last_synced_at":"2026-02-19T01:31:12.293Z","repository":{"id":47372616,"uuid":"411432776","full_name":"Al3xDiaz/code-infrastructure","owner":"Al3xDiaz","description":"This is a collection of scripts and tools to help with the development of the deployment of the code infrastructure.","archived":false,"fork":false,"pushed_at":"2025-03-09T23:47:46.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-05T10:41:35.109Z","etag":null,"topics":["ansible-project","devops","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Al3xDiaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-28T20:42:52.000Z","updated_at":"2025-03-09T23:47:50.000Z","dependencies_parsed_at":"2025-03-10T00:22:42.135Z","dependency_job_id":"86f43e73-0d09-4136-9e88-58112d8bd1e5","html_url":"https://github.com/Al3xDiaz/code-infrastructure","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Al3xDiaz/code-infrastructure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al3xDiaz%2Fcode-infrastructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al3xDiaz%2Fcode-infrastructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al3xDiaz%2Fcode-infrastructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al3xDiaz%2Fcode-infrastructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Al3xDiaz","download_url":"https://codeload.github.com/Al3xDiaz/code-infrastructure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Al3xDiaz%2Fcode-infrastructure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29600752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"ssl_error","status_checked_at":"2026-02-19T00:59:36.936Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ansible-project","devops","terraform"],"created_at":"2025-04-06T05:36:24.427Z","updated_at":"2026-02-19T01:31:12.271Z","avatar_url":"https://github.com/Al3xDiaz.png","language":"HCL","readme":"# TERRAFORM\n\nterraform init\n\n```bash\ndocker-compose run --rm  --entrypoint terraform terraform init -upgrade\n```\n\n```bash\n#validate\ndocker-compose run --rm  --entrypoint terraform terraform validate\n\n```\n\n```bash\n#plan\ndocker-compose run --rm  --entrypoint terraform terraform plan\n```\n\n```bash\n#apply\ndocker-compose run --rm  --entrypoint terraform terraform apply --auto-approve\n```\n\n```bash\n#Output\ndocker-compose run --rm --entrypoint terraform terraform output\n```\n\n```bash\n# Destroy the infrastructure.\ndocker-compose run --rm  --entrypoint terraform terraform apply -destroy -auto-approve\n```\n\n```bash\n#configure kubectl\naws eks --region us-east-2 update-kubeconfig --name $(docker-compose run --rm  --entrypoint terraform terraform output -raw cluster_name)\n\n```\n\n## configure aws \n## iam user\n* create user with programmatic access\n* create group with policy \"AmazonEC2FullAccess\" (or more restrictive)\n* add user to group\n\n## aws cost explorer\n### create budget\n#### create cost alarm\n* aws \u003e cost explorer \u003e budget \u003e create budget\n* name: \"terraform\"\n* budget type:  cost\n* budgeted amount: $1\n\n## Ansible\n### commands\n\n```bash\ndocker-compose run --rm ansible ansible-playbook main.yml --check\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal3xdiaz%2Fcode-infrastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fal3xdiaz%2Fcode-infrastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal3xdiaz%2Fcode-infrastructure/lists"}