generated fromrhythmictech/terraform-terraform-template
- Notifications
You must be signed in to change notification settings - Fork1
Creates an AWS Imagebuilder component that uninstalls Ansible after it's no longer needed.
License
NotificationsYou must be signed in to change notification settings
rhythmictech/terraform-aws-imagebuilder-component-ansible-teardown
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Template repository for terraform modules. Good for any cloud and any provider.
Terraform module that creates an EC2 Image Builder component which uninstalls Ansible on Amazon Linux 2 in order to leave a clean image if Ansible is not desired on the final image.
data"aws_caller_identity""current" {}locals {account_id=data.aws_caller_identity.current.account_idtags=module.tags.tags_no_name}module"tags" {source="rhythmictech/tags"version="~> 1.1.0"names=["smiller","imagebuilder-test" ]tags=merge({"Env"="test""Namespace"="smiller""notes"="Testing only - Can be safely deleted""Owner"= var.owner }, var.additional_tags)}module"component_ansible_setup" {source="rhythmictech/imagebuilder-component-ansible-setup/aws"version="~> 1.0.0-rc1"component_version="1.0.0"description="Testing ansible setup"name="testing-setup-component"tags=local.tags}module"component_ansible" {source="rhythmictech/imagebuilder-component-ansible/aws"version="~> 2.0.0-rc1"component_version="1.0.0"description="Testing component"name="testing-component"tags=local.tags}module"component_ansible_teardown" {source="rhythmictech/imagebuilder-component-ansible-teardown/aws"version="~> 1.0.0-rc1"component_version="1.0.0"description="Testing component"name="testing-component"playbook_dir="packer-generic-images/base"playbook_repo="https://github.com/rhythmictech/packer-generic-images.git"tags=local.tags}module"test_recipe" {source="rhythmictech/imagebuilder-recipe/aws"version="~> 0.2.0"description="Testing recipe"name="test-recipe"parent_image="arn:aws:imagebuilder:us-east-1:aws:image/amazon-linux-2-x86/x.x.x"recipe_version="1.0.0"tags=local.tagsupdate=truecomponent_arns=[module.component_ansible_setup.component_arn,module.component_ansible.component_arn,module.component_ansible_teardown.component_arn,"arn:aws:imagebuilder:us-east-1:aws:component/simple-boot-test-linux/1.0.0/1","arn:aws:imagebuilder:us-east-1:aws:component/reboot-test-linux/1.0.0/1" ]}module"test_pipeline" {source="rhythmictech/imagebuilder-pipeline/aws"version="~> 0.3.0"description="Testing pipeline"name="test-pipeline"tags=local.tagsrecipe_arn=module.test_recipe.recipe_arnpublic=false}
This module creates an EC2 Image Builder component which uninstalls Ansible on Amazon Linux 2.
| Name | Version |
|---|---|
| terraform | >= 0.14 |
| aws | >= 4.22.0 |
| Name | Version |
|---|---|
| aws | 4.49.0 |
No modules.
| Name | Type |
|---|---|
| aws_imagebuilder_component.this | resource |
| aws_secretsmanager_secret.ssh_key | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| additional_packages | Space separated list of additional packages included for ansible setup that may need to be removed after running ansible | string | "" | no |
| change_description | description of changes since last version | string | null | no |
| component_version | Version of the component | string | n/a | yes |
| data_uri | Use this to override the component document with one at a particualar URL endpoint | string | null | no |
| description | description of component | string | null | no |
| kms_key_id | KMS key to use for encryption | string | null | no |
| name | name to use for component | string | n/a | yes |
| platform | platform of component (Linux or Windows) | string | "Linux" | no |
| ssh_key_secret_arn | ARN of a secretsmanager secret containing an SSH key (use arn OR name, not both) | string | null | no |
| ssh_key_secret_name | Name of a secretsmanager secret containing an SSH key (use arn OR name, not both) | string | null | no |
| supported_os_versions | A set of operating system versions supported by the component. If the OS information is available, a prefix match is performed against the base image OS version during image recipe creation. | set(string) | null | no |
| tags | map of tags to use for CFN stack and component | map(string) | {} | no |
| Name | Description |
|---|---|
| component_arn | ARN of the EC2 Image Builder Component |
- pre-commit.com/
- terraform.io/
- github.com/tfutils/tfenv
- github.com/segmentio/terraform-docs
About
Creates an AWS Imagebuilder component that uninstalls Ansible after it's no longer needed.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.