waynemetcalfe
0a938f7bb4
issue-3379 iam list_roles: implement PathPrefix, MaxItems and Marker ( #3380 )
...
* issue-3379 iam list_roles: implement PathPrefix, MaxItems and Marker
* issue-3379 fix cloudformation test
2020-10-12 12:13:20 +01:00
Guilherme Martins Crocetti
f744356da7
Lambda reserved concurrency ( #3215 )
...
* lambda-responses: add method to dispatch concurrency calls
* lambda-resources: add route to handle concurrency requests
* lambda-model: implement put_function_concurrency and concurrency attribute
* put-concurrency-tests: add one simple test
* get_function: add concurrency entry - with test
* lambda-reserved-concurrency: cloudformation support
* lambda-concurrency: implement delete_reserved with tests
* lambda-concurrency: implement get_reserved with tests
* lint
* implementation-cov: mark delete_function_concurrency, put_function_concurrency and get_function_concurrency
* botocore doesn't display concurrency entry for lambdas without it
* lambda(refactor): improvements on response's handler
2020-08-26 11:06:53 +01:00
Bert Blommers
80761ebb3b
#3114 - Allow DynamoDB table as CFN output
2020-07-11 09:46:03 +01:00
Steve Pulec
ee0328b0a3
Merge pull request #3050 from bblommers/cloudformation-support-dynamodb-streams
...
CloudFormation - Support DynamoDB Streams
2020-06-11 20:58:19 -05:00
Guilherme Martins Crocetti
e32a60185f
Cloudformation - EventBus support ( #3052 )
...
* add EventBus to model's map
* add support for creation of EventBus through cloudformation's api
* add cloudformation's delete
* add cloudformation's update
* add cloudformation's attribute
2020-06-06 11:31:14 +01:00
Bert Blommers
a66b0e5b1a
CloudFormation - Support DynamoDB Streams
2020-06-04 07:45:00 +01:00
Guilherme Martins Crocetti
149e307bc9
Rule's cloudformation support for updates ( #3043 )
...
* add support to update stack using cloudformation
* blacked test file
2020-06-03 06:54:01 +01:00
Jeremie Tharaud
90e200f0f6
Add missing changes when creating a change set ( #3039 )
...
* Display changes when creating a change set
* add change set id and description when describing stack
* fix lint with flake8 and black
2020-06-03 06:08:35 +01:00
Zach Brookler
31ce74a842
Fix autoscaling tags ( #3010 )
...
* ENH: Add unit test for propagation tags
* BUG: Add missing translation of boolean PropagateAtLaunch tag values to strings
* BUG: Should really be checking for "true" and not True
* CLN: Black formatting
2020-05-24 12:21:29 +01:00
Zach Brookler
80b64f9b3f
Cloud formation "depends_on" #2845 Add depends on and update name type mapping ( #2994 )
...
* ENH: Add unit test for cloudformation DependsOn
* ENH: Add implementation of retrieving list of resources that account for dependencies
* ENH: Update the name mappings so that they are consistent with the latest cloudformation names
* ENH: Add launch configuration to type names
* ENH: Create subnet for test and test creation with dependencies
* CLN: Code reformatting
* CLN: Remove print statements
* BUG: Fix error resulting in possible infinite loop
* CLN: Remove commented out fixture decorator
* BUG: Remove subnet creation
* CLN: Remove main and ec2 dependencies
* BUG: Add back in instance profile name type
* CLN: Remove print
* BUG: Fix broken unit test
* CLN: Code reformatting
* CLN: Remove main
* ENH: Add autoscaling group name to type names
* ENH: Add unit test for string only dependency and add assertions to unit tests
* ENH: Add unit test for chained depends_on in cloudformation stack
* BUG: Remove f strings for python 2.7 compatibility
* BUG: List needs to be sorted for python2.7
* CLN: Fix code formatting
2020-05-18 09:47:18 +01:00
Mike Grima
bdeeeb701a
Merge pull request #2880 from bblommers/bugfix/2877
...
EC2 - Ensure NCI always has a Subnet
2020-04-16 15:02:45 -07:00
Bert Blommers
414fcf7bbd
Fix AvailibilityZones in CF tests
2020-04-08 15:14:39 +01:00
Guilherme Martins Crocetti
503eeb51ae
style with black
2020-04-01 22:48:40 -03:00
Guilherme Martins Crocetti
c15ca133b8
add support for Fn::GetAtt in event's cloudformation
2020-04-01 22:14:51 -03:00
Guilherme Martins Crocetti
af08d71310
add support for RetentionInDays for LogGroup
2020-04-01 22:14:41 -03:00
Guilherme Martins Crocetti
788b8fb6e1
Add tests for Events::Rule integration with cf
2020-03-23 22:17:02 -03:00
Guilherme Martins Crocetti
98a17dfc46
Add test for boto3 integration
2020-03-22 18:03:42 -03:00
Bert Blommers
cbf0397953
#2255 - CF - Implement FN::Transform and AWS::Include
2020-03-18 13:02:07 +00:00
Bert Blommers
9163f04292
Linting
2020-03-11 13:19:40 +00:00
Luis Pollo
20364b177a
Fix IAM role name when parsed from CloudFormation JSON.
2020-03-11 13:17:35 +00:00
Fabio Dias
743dd46399
black linting
2019-12-16 21:25:20 -05:00
Fabio Dias
fd9ac4b9a5
ACCOUNT_ID moved to moto.core, MOTO_ACCOUNT_ID env var override
2019-12-16 21:05:29 -05:00
Fabio Dias
b83a750630
Added references to moto.iam.models.ACCOUNT_ID instead of hardcoded id
2019-12-16 19:56:11 -05:00
Bert Blommers
ad23b65784
Implement CloudFormations IAMRole::GetArn
2019-11-07 11:35:07 -08:00
Bert Blommers
40aa73a12b
#2546 - AWS Lambda: Add Role validation when creating functions
2019-11-07 17:11:13 +00:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
Bendegúz Ács
f408709ef9
VPC IPv4 validation ( #2026 )
...
* Implemented throwing invalid subnet range error and fixed breaking tests.
* Implemented throwing invalid CIDR block parameter error for vpcs and subnets.
* Implemented throwing invalid destination CIDR block error.
* IPv6 addresses not accepted, strict checking disabled.
* Implemented throwing invalid subnet conflict error and fixed breaking tests.
* Implemented throwing invalid VPC range error and fixed breaking tests.
* Fixed accidentally removed ).
* Fixed test case trying to create two subnets with the same CIDR range.
2019-05-25 18:35:07 +01:00
Koudai Aono
a61124f774
support to create dynamodb resource by cloudformation ( #2219 )
...
* support to create dynamodb resource by cloudformation
2019-05-25 10:16:33 +01:00
Jacob Grismo
4f7d6e15c9
adds failing test case for lambda cfm env vars
...
Adds a failing test case that shows that a Lambda function resource in a CloudFormation template ignores
the Environment variable mapping.
2018-12-28 22:16:07 -05:00
Hugo Lopes Tavares
5f61950096
Make SpotPrice optional when requesting a spot fleet
...
When price is omitted, AWS will default to the on-demand price
2018-02-01 18:07:35 -05:00
Gordon Irving
e9b81bb325
add test for vpc tags
2017-12-28 19:27:53 +00:00
William Richard
df7a7958c1
Path is an optional property of instance profile cloudformation resource ( #1382 )
...
* Path is an optional property of instance profile cloudformation resource
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html
* Path is also optional for iam role clouformation resources
Based on http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html
* Use `properities.get` with a default instead of doing default handling myself
2017-12-14 12:06:04 +00:00
Hugo Lopes Tavares
aa6a0765c1
Move target group default values to model FakeTargetGroup ( #1343 )
...
Before this commit everything that needs to create target groups
had to handle the default values (i.e., cloudformation call & ELBV2Response call)
2017-11-15 19:36:53 +00:00
Hugo Lopes Tavares
7b1ec157b8
Add proper CFN attribute handling to elbv2.FakeLoadBalancer ( #1341 )
2017-11-15 15:11:11 +00:00
Terry Cain
bd8c1e4567
adding owner id to amis v2 ( #1331 )
...
* Adding owner-id/OwnerId to the AMI classes to allow the value to be specified to test filtering images based on owner.
* Added default AMIs and filtering by owner-id
* Fixed some tests
* Fixed more random tests
* Updated MANIFEST
* .
2017-11-12 11:18:25 +00:00
Hugo Lopes Tavares
63c33211ee
Add GetAtt support to elbv2 LoadBalancer
2017-10-27 15:32:16 -04:00
Hugo Lopes Tavares
7b074b50a9
Add CloudFormation support to AWS::ElasticLoadBalancingV2::Listener
2017-10-27 14:38:40 -04:00
Hugo Lopes Tavares
dfd41d8c00
Add CloudFormation support to AWS::ElasticLoadBalancingV2::TargetGroup
2017-10-27 14:24:11 -04:00
Hugo Lopes Tavares
8786c2df05
Add CloudFormation support to AWS::ElasticLoadBalancingV2::LoadBalancer
2017-10-27 11:54:55 -04:00
William Richard
c5ce2848be
Boto3 and cloudformation have different keys for auto scaling tags - handle that gracefully
2017-06-21 15:59:03 -04:00
Hugo Lopes Tavares
bfa8b4552c
Fix CloudFormation Lambda ZipFile implementation to be plain text
...
The AWS CloudFormation documentation[1] states the following about the ZipFile property:
> For nodejs4.3, nodejs6.10, python2.7, and python3.6 runtime environments, the source code of your Lambda function.
> You can't use this property with other runtime environments.
[1]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile
2017-05-17 18:48:54 -04:00
Steve Pulec
e3bff8b926
Fix cloudformation NoValue parsing to not add attribute. Closes #870
2017-03-16 21:20:01 -04:00
Steve Pulec
3b4ef2cf15
Merge in master.
2017-03-05 09:58:39 -05:00
William Richard
f46a24180f
Cast desired capacity for cloudformation asg to int ( #846 )
...
Cloudformation passes MaxSize, MinSize and DesiredCapacity as strings, but
we want to store them as ints. Also includes tests of this fix, to help
avoid regression.
2017-03-04 22:51:01 -05:00
Andy Freeland
783242b696
Elastic IP PhysicalResourceId should always be its public IP ( #841 )
...
According to the [CloudFormation `Ref` docs][docs], the `Ref` return
value (and physical ID of the resource) for an Elastic IP is its public
IP address.
[docs]: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html
2017-03-04 22:40:43 -05:00
Andy Freeland
a30ba2b597
EC2 tags specified in CloudFormation should be applied to the instances ( #840 )
...
Fixes #839 .
2017-03-04 22:37:53 -05:00
Steve Pulec
f37bad0e00
Lints.
2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981
Get standalone server mode working for all tests.
2017-02-23 19:43:48 -05:00
Steve Pulec
fde721bed7
Testing new version of decorator.
2017-02-15 22:35:45 -05:00
Akhter Ali
2bf85fe25d
Fix Route53 response and tests ( #804 )
...
* Fix route53 response \n Fix route53 tests
* Fixing index
* fix zone ID on test_route53_with_update
2017-01-18 21:40:04 -05:00