{"id":20656361,"url":"https://github.com/flaconi/ansible-role-aws-vpc-subnet","last_synced_at":"2025-04-19T12:22:56.924Z","repository":{"id":38309680,"uuid":"134716802","full_name":"Flaconi/ansible-role-aws-vpc-subnet","owner":"Flaconi","description":"Ansible role to create an arbitrary number of subnets for an arbitrary number of VPC's on AWS","archived":false,"fork":false,"pushed_at":"2023-02-13T16:55:57.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":23,"default_branch":"master","last_synced_at":"2023-03-01T19:23:34.448Z","etag":null,"topics":["ansible","ansible-role","aws","role","subnet","vpc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flaconi.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}},"created_at":"2018-05-24T13:07:41.000Z","updated_at":"2022-08-07T12:47:58.000Z","dependencies_parsed_at":"2022-08-09T03:00:21.921Z","dependency_job_id":null,"html_url":"https://github.com/Flaconi/ansible-role-aws-vpc-subnet","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fansible-role-aws-vpc-subnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fansible-role-aws-vpc-subnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fansible-role-aws-vpc-subnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaconi%2Fansible-role-aws-vpc-subnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flaconi","download_url":"https://codeload.github.com/Flaconi/ansible-role-aws-vpc-subnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224951615,"owners_count":17397425,"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","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","ansible-role","aws","role","subnet","vpc"],"created_at":"2024-11-16T18:14:56.389Z","updated_at":"2024-11-16T18:14:56.831Z","avatar_url":"https://github.com/Flaconi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible role: AWS VPC Subnets\n\nThis role handles the creation of VPC subnets in AWS.\n\n[![Build Status](https://travis-ci.org/Flaconi/ansible-role-aws-vpc-subnet.svg?branch=master)](https://travis-ci.org/Flaconi/ansible-role-aws-vpc-subnet)\n[![Version](https://img.shields.io/github/tag/Flaconi/ansible-role-aws-vpc-subnet.svg)](https://github.com/Flaconi/ansible-role-aws-vpc-subnet/tags)\n[![Ansible Galaxy](https://img.shields.io/ansible/role/d/25921.svg)](https://galaxy.ansible.com/Flaconi/aws-vpc-subnet/)\n\n## Requirements\n\n* Ansible 2.5\n\n\n## Additional variables\n\nAdditional variables that can be used (either as `host_vars`/`group_vars` or via command line args):\n\n| Variable                               | Description                     |\n|----------------------------------------|---------------------------------|\n| `aws_vpc_subnet_profile`               | Boto profile name to be used    |\n| `aws_vpc_subnet_default_region`        | Default region to use           |\n| `aws_vpc_subnet_default_public`        | Default visibility of subnets   |\n| `aws_vpc_subnet_vpc_filter_additional` | Additional `key` `val` filter to add to `vpc_filter` and `vpc_name` by default. |\n\n## Example definition\n\n#### Required parameter only\n\n```yml\naws_vpc_subnets:\n  # Create subnets for a VPC by VPC name\n  - vpc_name: devops-test-vpc\n    subnets:\n      - name: subnet-1\n        cidr: 172.29.1.0/24\n      - name: subnet-2\n        cidr: 172.29.2.0/24\n  # Create subnets for a VPC by VPC filter\n  - vpc_filter:\n      - key: \"tag:Name\"\n        val: \"devops-test-vpc\"\n    subnets:\n      - name: subnet-1\n        cidr: 172.29.1.0/24\n      - name: subnet-2\n        cidr: 172.29.2.0/24\n```\n\n#### All available parameter\n```yml\naws_vpc_subnets:\n  # Create subnets for a VPC by VPC name\n  - vpc_name: devops-test-vpc\n    region: eu-central-1\n    subnets:\n      - name: subnet-1\n        cidr: 172.29.1.0./24\n        az: a\n        public: True\n        tags:\n          - key: env\n            val: playground\n          - key: department\n            val: devops\n      - name: subnet-2\n        cidr: 172.29.2.0./24\n        az: b\n        public: True\n        tags:\n          - key: env\n            val: playground\n          - key: department\n            val: devops\n  # Create subnets for a VPC by VPC name\n  - vpc_filter:\n      - key: \"tag:Name\"\n        val: \"devops-test-vpc\"\n      - key: \"tag:env\"\n        val: playground\n      - key: \"tag:department\"\n        val: devops\n    region: eu-central-1\n    subnets:\n      - name: subnet-1\n        cidr: 172.29.1.0./24\n        az: a\n        public: True\n        tags:\n          - key: env\n            val: playground\n          - key: department\n            val: devops\n      - name: subnet-2\n        cidr: 172.29.2.0./24\n        az: b\n        public: True\n        tags:\n          - key: Name\n            val: devops-test-subnet-b\n          - key: env\n            val: playground\n          - key: department\n            val: devops\n```\n\n\n## Testing\n\n#### Requirements\n\n* Docker\n* [yamllint](https://github.com/adrienverge/yamllint)\n\n#### Run tests\n\n```bash\n# Lint the source files\nmake lint\n\n# Run integration tests with default Ansible version\nmake test\n\n# Run integration tests with custom Ansible version\nmake test ANSIBLE_VERSION=2.4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaconi%2Fansible-role-aws-vpc-subnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaconi%2Fansible-role-aws-vpc-subnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaconi%2Fansible-role-aws-vpc-subnet/lists"}