summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorRafael Driutti <rafa.driutti@gmail.com>2019-02-21 18:04:42 -0500
committerSloane Hertel <shertel@redhat.com>2019-02-21 17:04:42 -0600
commitc68838fb1363f3de053d66b188c3423d0357c71e (patch)
treefcdea44d247c6bd43a7d69c53f40bd1547ca5b03 /hacking
parent5e3e0eb9461684ab089f7bd45de0b6a9ca15d0fb (diff)
downloadansible-c68838fb1363f3de053d66b188c3423d0357c71e.tar.gz
AWS Redshift: port module to boto3 and fix parameters check (#37052)
* fix parameters check and port module to boto3 * begin with integration tests * allow redshift iam policy * Wait for cluster to be created before moving on to delete it * Allow sts credentials so this can be run in CI Don't log credentials ensure cluster can be removed * - Replace DIY waiters with boto3 waiters - test multi node cluster * catch specific boto3 error codes * remove wait from test * add missing alias for shippable * - Rework modify function. - Default unavailable parameters to none. - Add cluster modify test * Ensure resources are cleaned up if tests fail * Ensure all botocore ClientError and BotoCoreError exceptions are handled
Diffstat (limited to 'hacking')
-rw-r--r--hacking/aws_config/testing_policies/redshift-policy.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/hacking/aws_config/testing_policies/redshift-policy.json b/hacking/aws_config/testing_policies/redshift-policy.json
new file mode 100644
index 0000000000..bb73cef802
--- /dev/null
+++ b/hacking/aws_config/testing_policies/redshift-policy.json
@@ -0,0 +1,20 @@
+{
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Sid": "AllowRedshiftManagment",
+ "Action": [
+ "redshift:CreateCluster",
+ "redshift:CreateTags",
+ "redshift:DeleteCluster",
+ "redshift:DeleteTags",
+ "redshift:DescribeClusters",
+ "redshift:DescribeTags",
+ "redshift:ModifyCluster",
+ "redshift:RebootCluster"
+ ],
+ "Effect": "Allow",
+ "Resource": "*"
+ }
+ ]
+}