Commit Graph

33 Commits

Author SHA1 Message Date
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
Randy Westergren
ccceb70397
And event source mapping endpoints and SQS trigger support 2019-08-20 21:54:57 -04:00
grahamlyons
4de92accab
Fix existing tests which use list_stacks
The tests are expecting that deleted stacks are not listed when in
fact they should be.
2018-11-27 11:11:13 +00:00
Waldemar Hummer
115b9cee3e add CloudFormation model for Kinesis streams 2017-07-20 14:37:53 +10:00
Waldemar Hummer
da7106cfd6 extended CloudFormation models for Lambda and DynamoDB 2017-06-01 22:43:23 +02:00
Andrew Garrett
6f4cb512ac Allow CloudFormation stack tags to be updated
Limitations:

* does not update the tags of the resources in the stack. that can be
implemented later.
* does not support the supposed feature of clearing tags by passing an
empty value that boto3 mentions in its documentation. I could not find
anything in the request body to indicate when an empty value was passed.
2017-03-17 23:57:57 +00:00
Steve Pulec
3b4ef2cf15 Merge in master. 2017-03-05 09:58:39 -05:00
Andrew Garrett
e7735c3ee1 Add event IDs to CF Stack events (#852)
So that events can be uniquely identified.

I tried to match the format documented here:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-listing-event-history.html
2017-03-04 23:12:55 -05:00
Andrew Garrett
f6465df630 Return CF Stack events in reverse chronological order (#853)
This is how the AWS API works:
http://boto3.readthedocs.io/en/latest/reference/services/cloudformation.html#CloudFormation.Client.describe_stack_events
2017-03-04 23:00:25 -05:00
David Wilcox
a9554924df make cloudformation update stack use parameters provided (#843) 2017-03-04 22:48:51 -05:00
David Wilcox
8d737eb59d Route53: allow hosted zone id as well when creating record sets (#833)
* add test that creates r53 record set from hosted zone id (not name)

* pass test to enable creating record sets by hosted zone ids
2017-03-04 22:31:45 -05:00
David Wilcox
bcc3e57949 Cloudformation ResourceMaps incorrectly share namespaces for Conditions and Resources (#828)
* add tests to check CF's conditions and resources have distinct namespace

* separate the resource and condition namespaces for CF
2017-03-04 22:26:23 -05:00
Steve Pulec
f37bad0e00 Lints. 2017-02-23 21:37:43 -05:00
Steve Pulec
fde721bed7 Testing new version of decorator. 2017-02-15 22:35:45 -05:00
Andrew Garrett
542248158f Implement the meat for DescribeStackEvents
Right now this just adds events for the stack itself via the lifecycle
methods of the FakeStack object, but it is possible to add other kinds
of events (I left a method for that should someone need inspiration
later.)
2016-06-29 21:56:39 +00:00
Hitesh Ghia
d8baa957e9 Fix cfn delete stack functionality 2016-06-09 16:23:55 -07:00
Jesse Szwedko
6928501973 Throw exception if an update is attempted on a stack in ROLLBACK_COMPLETE
If a stack has a status of ROLLBACK_COMPLETE and you attempt to update
it, the AWS API throws a validation error. This updates moto to have the
same behvaior. We also uncommented a test which tests updating a stack
which passed without any additional modification -- it is unclear why
this test was commented.

Signed-off-by: Jack Lund <jack.lund@getbraintree.com>
2016-04-28 09:30:42 -04:00
Steve Pulec
a600deb96a Fix merge conflicts and add EC2 Instance delete. Closes #576. 2016-04-28 09:22:31 -04:00
Lawrence Aiello
3017181862 Fixes issue #575: cloudformation update_stack response ResponseParserError. 2016-04-18 14:37:12 -04:00
Hugo Lopes Tavares
e5675e9533 Change CloudFormationResponse.get_template() to return GetTemplateResponse/GetTemplateResult/TemplateBody 2015-10-05 15:21:30 -04:00
Steve Pulec
1dcfcbca57 Add cloudformation tags. 2015-08-31 16:48:36 -04:00
Steve Pulec
1e4df18c42 Allow actual use of cloudformation input parameters. 2014-12-31 14:21:47 -05:00
Steve Pulec
186ee6a5a4 Add cloudformation stack parsing for S3 keys. 2014-12-29 22:12:23 -05:00
Steve Pulec
bd847bd941 Cleanup multi-region support for ELB, SQS, Cloudformation, EC2, Autoscaling. 2014-11-15 13:34:52 -05:00
Joseph Lawson
1152939ecd add notification arns to cloudformation 2014-10-29 11:59:41 -04:00
Joseph Lawson
04d22082c4 remove some test details for 2.6 2014-10-23 22:32:20 -04:00
Joseph Lawson
3015fd0216 python 2.6 assert_raises 2014-10-23 22:21:00 -04:00
Joseph Lawson
08b1c3bc0c test delete stack 2014-10-23 14:57:46 -04:00
Joseph Lawson
04b5389e31 Add test for bad describe stack request 2014-10-23 14:46:54 -04:00
Joseph Lawson
94e969fed5 Enhance DescribeStacks. Keep track of deleted stacks. Stack status.
Made describe_stacks more in line with http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeStackResource.html
2014-10-22 23:58:42 -04:00
David Baumgold
4201e6b430 from __future__ import unicode_literals 2014-08-27 11:33:55 -04:00
Steve Pulec
ef876dd27e Fix merge conflicts. Add basic cloudformation support. Closes #111. 2014-03-27 19:12:53 -04:00