Steve Pulec
0fe824277b
Merge pull request #923 from JackDanger/jack/cloud-formation-yaml
...
Allow yaml templates for cloud formation
2017-05-12 18:41:46 -04:00
Steve Pulec
0adebeed24
Merge #913 .
2017-05-10 21:58:42 -04:00
Jack Danger Canty
bf3fff6e2c
Allow yaml templates for cloud formation
...
Fixes #912
2017-05-01 11:28:35 -07: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
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
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
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
David Wilcox
a9554924df
make cloudformation update stack use parameters provided ( #843 )
2017-03-04 22:48:51 -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
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
3c0c4c2996
Fix tests for py3.
2017-02-23 22:28:09 -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
Jesse Szwedko
e1260bca06
cloudformation: Support RoleARN for create and update stack ( #807 )
...
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 22:59:47 -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
Michael Nussbaum
74bbd9c8e5
Various RDS, RDS/Cloudformation, RDS/KMS improvements. ( #789 )
...
We need to mock out deploying RDS instances with full disk encryption
and detailed tagging. We also need to be able do deploy these instances
with Cloudformation, and then access them with both boto and boto3.
* Join RDS and RDS2 backends - this makes RDS resources created via
either of the two boto RDS APIs visible to both, more closely
mirroring how AWS works
* Fix RDS responses that were returning JSON but should be returning XML
* Add mocking of RDS Cloudformation calls
* Add mocking of RDS full disk encryption with KMS
* Add mocking of RDS DBParameterGroups
* Fix mocking of RDS DBSecurityGroupIngress rules
* Make mocking of RDS OptionGroupOptions more accurate
* Fix mocking of RDS cross-region DB replication
* Add RDS tag support to:
* DBs
* DBSubnetGroups
* DBSecurityGroups
Signed-off-by: Andrew Garrett <andrew.garrett@getbraintree.com>
2017-01-11 21:02:51 -05:00
Taro Sato
02324ad708
Add more availability regions and implement default VPC ( #773 )
...
Fix filter name for availability zone
Fix bug assuming dict keys are ordered
Fix tests
Fix tests
Fix bug
2017-01-11 20:37:57 -05:00
Steve Pulec
5c3d9b4ae1
Have spot requests launch instances.
2016-11-07 23:08:30 -05:00
Steve Pulec
5371044b6f
Spot fleet ( #760 )
...
* initial spot fleet.
* Add cloudformation spot fleet support.
* If no spot fleet ids, return all.
2016-11-07 09:53:44 -05:00
rocky4570fft
dc98cf6f64
argh 2 days trying to work python3 into working python2 :(
2016-10-10 01:13:52 +10:00
rocky4570fft
6c577091da
lambderize the moto lambda
2016-10-06 19:52:23 +10:00
Declan Shanaghy
e8d245f6a1
Fix tests for python3
2016-08-15 12:36:39 -07:00
Declan Shanaghy
659efe1c21
Add tests
2016-08-15 11:28:07 -07: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
Steve Pulec
d4895d588a
Merge pull request #616 from mnussbaum/cloudformation_kms
...
Adds KMS support to mock_cloudformation
2016-05-17 21:01:12 -04:00
mnussbaum
01e5c3a384
Adds KMS support to mock_cloudformation
2016-05-13 21:36:24 +00: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
Steve Pulec
b6d5317b18
Merge pull request #590 from aiell0/hotfix/update-stack-response-issue-575
...
Fixes issue #575 : cloudformation update_stack response ResponseParser…
2016-04-23 19:38:11 -04:00
Lawrence Aiello
3017181862
Fixes issue #575 : cloudformation update_stack response ResponseParserError.
2016-04-18 14:37:12 -04:00
Declan Shanaghy
b152c00642
Fix multiple bugs encountered with boto3
...
* Fix path detection for deleting keys in S3 bucket
* Fix stack deletion ensure delete method exists on object
* Previous tests were using a stack with no resources
* Fix DESCRIBE_STACK_RESOURCES_RESPONSE,
* Previously untested code path
2016-04-12 13:58:17 -07:00
Lars Fronius
519b8e59aa
Propagate stack-level tags to resources
...
According to
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
"All stack-level tags, including automatically created tags, are
propagated to resources that AWS CloudFormation supports. Currently,
tags are not propagated to Amazon EBS volumes that are created from
block device mappings."
2016-03-15 15:36:02 +01:00
Hugo Lopes Tavares
c689816337
Add CloudFormation support to NatGateway model
2016-03-01 12:02:57 -05:00
Andrew Garrett
993087f2bb
Fix AutoScalingGroup tags in DescribeAutoScalingGroups
...
I'm not certain that this is the approach that's desired. It'd be nice
to dynamically convert the keys one way or the other. Looking for
feedback.
Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:28 +00:00
Andrew Garrett
ec10699c38
Add XML support for cloudformation commands that lacked it
...
This lets boto3's cloudformation API work with moto.
fixes #444
Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
2016-02-29 19:50:23 +00:00
Hugo Lopes Tavares
576b9f683c
[lambda] Add CloudFormation support for AWS::Lambda::Function
2016-02-17 16:13:57 -05:00
Steve Pulec
44f0377cc4
Fix root volume to show up in other EC2 volume API calls. Closes 470
2015-11-28 09:19:45 -05:00
Hugo Lopes Tavares
e5675e9533
Change CloudFormationResponse.get_template() to return GetTemplateResponse/GetTemplateResult/TemplateBody
2015-10-05 15:21:30 -04:00
Hugo Lopes Tavares
dafddb094b
Implement CloudFormation's physical_resource_id for Data Pipeline
2015-09-17 15:29:14 -04:00
Hugo Lopes Tavares
8623483c0f
Change data pipeline responses to start with lowercase characters
2015-09-17 15:26:35 -04:00
Steve Pulec
66dce44214
Update cloudformation test for previous commit.
2015-09-16 18:17:20 -04:00
Hugo Lopes Tavares
25f9e8b588
Change CloudFormation to support Data Pipelines
2015-09-16 17:49:13 -04:00
Steve Pulec
1dcfcbca57
Add cloudformation tags.
2015-08-31 16:48:36 -04:00
Steve Pulec
73f03d1ccf
Add redshift support for cloudformation.
2015-08-08 13:29:37 -04:00
Jot
930ac58a4d
Added sns backend to servers, added some tests to check backend
2015-08-04 00:20:04 +02:00
Jot
42b95023f5
Added iam backend to servers, added some tests to check backend
2015-08-03 00:31:36 +02:00
Steve Pulec
71d2e1d7de
Python3 fixes for cloudformation server.
2015-08-02 11:37:10 -04:00
Jot
b2570d901e
Enabled cloudformation in server mode with some tests
2015-08-02 16:31:16 +02:00
Steve Pulec
53fff2eb84
Add UpdateStack functionality for Cloudformation.
2015-07-13 13:56:46 -04:00
Steve Pulec
7f73d7e26d
Add cloudformation list_stack_resources.
2015-07-13 11:05:36 -04:00
Hugo Lopes Tavares
5160fac9b7
Add availability zone support to Subnets created via CloudFormation
2015-04-08 16:48:02 -04:00
Steve Pulec
c0d19ab178
General cleanup.
2015-03-14 18:55:44 -04:00
Steve Pulec
6c9bba2ca1
Cleanup EC2 classic default security group.
2015-03-14 18:50:41 -04:00
Hugo Lopes Tavares
4beda26007
Change SecurityGroupBackend.{authorize,revoke}_security_group_ingress() methods to receive group name or id, never both
2015-02-25 18:11:00 -05:00
Hugo Lopes Tavares
dc351dfc9e
Add support to AWS::EC2::SecurityGroupIngress creation
2015-02-25 12:20:25 -05:00
Konstantinos Koukopoulos
04b86fe362
add missing decorator to cloudformation test
2015-02-20 17:28:49 +02:00
Hugo Lopes Tavares
8d25aa2529
Add support to create AWS::EC2::VPCPeeringConnection through the CloudFormation interface
2015-02-17 14:40:48 -05:00
Hugo Lopes Tavares
1546635fcd
Attach internet gateway to VPC when it is created through CloudFormation
2015-02-11 18:19:40 -05:00
Steve Pulec
c22ea3014b
Add SNS topics to cloudformation.
2015-01-17 19:48:08 -05:00
Steve Pulec
585ef7b768
Add route53 health checks.
2015-01-17 19:06:43 -05:00
Steve Pulec
adb26986eb
Add route53 ResourceSet to Cloudformation.
2015-01-17 15:37:46 -05:00
Steve Pulec
42cd333d51
Refactor Route53 record sets.
2015-01-17 14:50:19 -05:00
Steve Pulec
5d5f241b99
Add route53 support to cloudformation.
2015-01-17 10:17:25 -05:00
Steve Pulec
ae6a05af72
Add missing fixture.
2015-01-11 16:17:53 -05:00
Steve Pulec
166f4893ba
Add cloudformation for RDS.
2015-01-11 16:15:08 -05:00
Steve Pulec
e05a061993
Add support for Cloudformation Mappings.
2015-01-07 22:32:51 -05:00
Steve Pulec
8da6437689
Add some support for Cloudformation Conditions. Closes #285 .
2015-01-07 21:37:12 -05: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
2a61ef6f91
Cleanup some tests to work across regions. cc #232
2014-11-15 13:50:58 -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
8299b5c312
enable cloudformation of NetworkInterface
2014-11-03 14:24:22 -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
Joseph Lawson
8aabda0786
add test for Fn::Join
2014-10-21 22:05:27 -04:00
Joseph Lawson
835259607a
test eip allocation via CloudFormation for VPC and EC2 classic
2014-10-21 21:55:08 -04:00
Joseph Lawson
9301b46346
another python 3 fix on dict
2014-10-21 15:55:08 -04:00
Joseph Lawson
83f187fa7e
fix python 3 issue merging dicts
2014-10-21 13:49:25 -04:00
Joseph Lawson
1d9ffafaa5
create CloudFormation outputs and enable 'Fn::GetAtt' to work.
2014-10-21 12:45:03 -04:00
Joseph Lawson
832769b8a7
Name resources via CloudFormation naming convention and tag EC2 resources.
...
* Make sure taggable resources are tagged per convention: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-stack-parameters.html
* Update CloudFormation parsing to use logical resource ids and name resources as CloudFomation would.
* Fix tests for CloudFormation stack integration.
2014-10-20 15:16:39 -04:00
Joseph Lawson
91a74424e5
Handle Name Type resources for CloudFormation
2014-10-20 11:45:47 -04:00
David Baumgold
eedb4c4b73
Support Python 3 using six
2014-08-28 10:57:43 -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