Lambda policy arn (#38863)

* Fix the function_name handling logic for lambda_policy

Switch the logic handling function_names that are ARNs
so that ARNs are correctly handled and detected

* Add tests for lambda_policy function_arn

Ensure that function_arn works.

Needs a reasonable ansible_lambda_role.
This commit is contained in:
Will Thames
2018-04-17 23:53:59 +10:00
committed by Sloane Hertel
parent 4e56dcd01a
commit 0b4f92d852
3 changed files with 81 additions and 64 deletions

View File

@@ -0,0 +1,12 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "lambda.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}