Debian Codegraph @

ansible_collections/amazon/aws/tests/integration/targets/setup_connection_aws_ssm/README.md

raw
1 # AWS SSM Integration Test Setup
2
3 ## aws_ssm_integration_test_setup_teardown
4
5 An Ansible role was created to perform integration test across aws_ssm connection plugin. The role performs the following actions.
6
7 - Create AWS Resources in user specified region.
8 - Perform integration Test across aws_ssm connection plugin.
9 - TearDown/Remove AWS Resources that are created for testing plugin.
10
11 ### Prerequisites
12
13 - Make sure the machine used for testing already has Ansible repo with ssm connection plugin.
14 - AWS CLI/IAM-Role configured to the machine which has permissions to spin-up AWS resources.
15
16 ### Variables referred in Ansible Role
17
18 The following table provide details about variables referred within Ansible Role.
19
20 | Variable Name | Details |
21 | ------ | ------ |
22 | aws_region | Name of AWS-region |
23 | iam_role_name | Name of IAM Role which will be attached to newly-created EC2-Instance |
24 | iam_policy_name | Name of IAM Policy which will be attached to the IAM role referred above |
25 | instance_type | Instance type user for creating EC2-Instance |
26 | instance_id | AWS EC2 Instance-Id (This gets populated by role) |
27 | bucket_name | Name of S3 buckted used by SSM (This gets populated by role) |
28
29 ### Example Playbook
30
31 A sample example to demonstrate the usage of role within Ansible-playbook.(Make sure the respective variables are passed as parameters.)
32
33 ```yaml
34 - hosts: localhost
35 roles:
36 - aws_ssm_integration_test_setup_teardown
37 ```
38
39 #### Author's Information
40
41 Krishna Nand Choudhary (krishnanandchoudhary)
42 Nikhil Araga (araganik)
43 Gaurav Ashtikar (gau1991)