summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorPrasad Katti <prasadmkatti@gmail.com>2019-11-21 15:53:36 -0800
committerJill R <4121322+jillr@users.noreply.github.com>2019-11-21 16:53:36 -0700
commit95bd92da044168a5f931b2e18f93b43f4bbe5736 (patch)
tree4e102976044543af0c190cac7e5cb9b23508bd81 /hacking
parent6e652ae6dfd3b34e755ea5b3463bc6bb6791e9cb (diff)
downloadansible-95bd92da044168a5f931b2e18f93b43f4bbe5736.tar.gz
Add integration tests for aws lightsail (#63770)
* Add integration tests for aws lightsail * lightsail - use module_defaults instead of aws_connection_info * lightsail tests - assert instance state on create * Fix yaml syntax error Co-Authored-By: Jill R <4121322+jillr@users.noreply.github.com> * [lightsail] create keypair as part of the testsuite * Fix lightsail actions in compute-policy * Add ability to delete keypair in lightsail_keypair
Diffstat (limited to 'hacking')
-rw-r--r--hacking/aws_config/testing_policies/compute-policy.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/hacking/aws_config/testing_policies/compute-policy.json b/hacking/aws_config/testing_policies/compute-policy.json
index 26932dfa5e..1d065d33af 100644
--- a/hacking/aws_config/testing_policies/compute-policy.json
+++ b/hacking/aws_config/testing_policies/compute-policy.json
@@ -245,6 +245,23 @@
"Resource": [
"arn:aws:states:*"
]
+ },
+ {
+ "Sid": "AllowLightsail",
+ "Effect": "Allow",
+ "Action": [
+ "lightsail:CreateInstances",
+ "lightsail:CreateKeyPair",
+ "lightsail:DeleteInstance",
+ "lightsail:DeleteKeyPair",
+ "lightsail:GetInstance",
+ "lightsail:GetInstances",
+ "lightsail:GetKeyPairs",
+ "lightsail:RebootInstance",
+ "lightsail:StartInstance",
+ "lightsail:StopInstance"
+ ],
+ "Resource": "arn:aws:lightsail:*:*:*"
}
]
}