Commit Graph

506 Commits

Author SHA1 Message Date
Steve Pulec
9024066957 Fixes for some S3 Unicode issues. Closes #158. 2014-11-22 10:19:56 -05:00
Tyler Sanders
1fc32fa5cb Add support for Route Table tagging 2014-11-20 14:08:38 -06:00
Tyler Sanders
d511fd829b Add support for Network ACL tagging 2014-11-20 12:04:34 -06:00
Steve Pulec
8d6868f9d3 For S3 Key Head requests, just return the real body for now so that key length works. Closes #131. 2014-11-19 21:06:23 -05:00
Steve Pulec
8954242086 Better is_public support for AMIs including filtering. Closes #263. 2014-11-19 20:09:46 -05:00
Tyler Sanders
2a6c4c89bf Fix conflict with subnet/network ACL association during subnet creation. 2014-11-17 09:37:38 -06:00
Tyler Sanders
d89dce2583 Use items() instead of iteritems() for Python 3 compatibility 2014-11-17 08:54:06 -06:00
Steve Pulec
828ed13bde Allow for class-based decorator. Closes #157 2014-11-16 19:05:28 -05:00
Steve Pulec
16660ab72b Allow message passing to SQS queues in different regions from SNS. 2014-11-16 18:42:53 -05:00
Steve Pulec
53acdf6c76 Make SNS multi-region. 2014-11-16 18:35:11 -05:00
Steve Pulec
aa7233a2db Fixes for multi-region SQS. 2014-11-16 17:57:46 -05:00
Steve Pulec
1f8253a1a1 Cleanup the default region backends. 2014-11-15 14:21:58 -05:00
Steve Pulec
bd847bd941 Cleanup multi-region support for ELB, SQS, Cloudformation, EC2, Autoscaling. 2014-11-15 13:34:52 -05:00
Steve Pulec
c77207a8b8 More flake8. 2014-11-15 09:53:45 -05:00
Steve Pulec
8ba308bf07 EC2 flake8 fixes. 2014-11-15 09:43:35 -05:00
Steve Pulec
8bc8f09b47 Some flake8 cleanup. 2014-11-15 09:35:52 -05:00
Steve Pulec
d734bca6a5 Fix for Volumes and Snapshots to use correct region. 2014-11-15 09:17:35 -05:00
Tyler Sanders
6d2c9d9960 Move call to associate default Network ACL with a new subnet. 2014-11-14 17:31:08 -06:00
Tyler Sanders
400d12b175 Add default Network ACL during VPC creation. Associate default Network ACL with a new subnet. Add support for associating a new Network ACL with a subnet. 2014-11-14 17:23:56 -06:00
Tyler Sanders
efc8caaf48 Test Network ACL describe 2014-11-12 15:48:44 -06:00
Tyler Sanders
0f18dd597c Add basic Network ACL create, describe support 2014-11-12 15:33:31 -06:00
Peter Van Bouwel
63c7e224a2 Always use ec2_backend to get the tag information in order to have a cleaner get_tags method. 2014-11-11 19:41:16 +01:00
Peter Van Bouwel
4f0cbf9bc9 Merge remote-tracking branch 'upstream/master' 2014-11-11 10:29:35 +01:00
Peter Van Bouwel
f28ad8ee29 Alter get_tags to use the backend associated with the taggable object. Also give volume and snapshot an additional backend attribute. 2014-11-11 10:26:02 +01:00
Steve Pulec
79cd93119d Merge pull request #257 from mrucci/autoscaling-fix-multi-region
Fix bug with autoscaling in non-default region.
2014-11-10 19:26:46 -05:00
Steve Pulec
e05fc76e28 Merge pull request #256 from mrucci/route53-response-insync
Report route53 changes immediately as INSYNC.
2014-11-10 19:25:41 -05:00
Peter Van Bouwel
2f1f993793 Extend the DESCRIBE_SNAPSHOTS_RESPONSE to include the tagSet as documented by AWS. Also refactor the names of the tests I introduced in previous commits to be more descriptive. Finally some code cleanup, removing the get_tags method from classes and instead inherit from the TaggedEC2Resource class. 2014-11-09 15:00:40 +01:00
Peter Van Bouwel
17356fe56c Extend the DESCRIBE_VOLUMES_RESPONSE to include the tagSet as documented by AWS on http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-ItemType-DescribeVolumesSetItemResponseType.html . This is needed to pass the test that was added in previous commit. 2014-11-09 12:21:19 +01:00
Marco Rucci
53a11c18c1 Fix bug with autoscaling in non-default region.
The bug appeared when using a region different than 'us-east-1'
and caused KeyError when accessing launch_configurations.

Rename the global autoscaling backend to reduce chances of similar naming issues.
2014-11-07 22:13:00 +01:00
Marco Rucci
0408511533 Report route53 changes immediately as INSYNC.
This avoids leaving changes in a perennial PENDING limbo.
2014-11-07 21:56:36 +01:00
Marco Rucci
99afd892a9 Add missing Id field in route 53 change response. 2014-11-07 21:40:00 +01:00
Hugo Lopes Tavares
aa3cf9c806 Move filter logic from responses.InstanceResponse to models.InstanceBackend 2014-11-05 14:20:49 -05:00
Hugo Lopes Tavares
88684f10f2 Move filter logic from responses.InternetGateways to models.InternetGatewayBackend 2014-11-05 14:02:45 -05:00
Hugo Lopes Tavares
32af875386 Implement InternetGateway filters support
More information about IGW filters: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInternetGateways.html#query-DescribeInternetGateways-filters
2014-11-05 12:26:29 -05:00
Hugo Lopes Tavares
faa55efe21 Implement vpc-id Instance filter 2014-11-05 11:06:14 -05:00
Steve Pulec
41282c9e48 Merge pull request #251 from joekiller/cfn_eni
enable cloudformation of NetworkInterface
2014-11-04 17:22:32 -05:00
Hugo Lopes Tavares
8a0a10b0d1 Add support to filtering instances by source-dest-check 2014-11-04 16:56:56 -05:00
Joseph Lawson
8299b5c312 enable cloudformation of NetworkInterface 2014-11-03 14:24:22 -05:00
Steve Pulec
ca44d4680a Py26 cloudwatch fixes. 2014-10-31 07:44:11 -04:00
Steve Pulec
93f56322d8 Fix merge conflicts for cloudwatch. 2014-10-30 23:51:09 -04:00
Steve Pulec
2d65b0a020 Some EC2 fixes for alternative regions. 2014-10-30 22:46:24 -04:00
Steve Pulec
5c9fec17b5 Merge pull request #248 from ttacon/master
Add create_login_profile for iam service
2014-10-29 20:07:33 -04:00
ttacon
5aec4d9de5 Add create_login_profile for iam service 2014-10-29 15:31:49 -04:00
Joseph Lawson
1152939ecd add notification arns to cloudformation 2014-10-29 11:59:41 -04:00
Steve Pulec
2881c9b20c Merge pull request #244 from DataDog/master
Add support for DescribeInstanceStatus' IncludeAllInstances option
2014-10-27 11:21:00 -04:00
Steve Pulec
4bfbf3bbf3 Python3 fixes for dynamodb2. 2014-10-26 21:11:03 -04:00
Steve Pulec
31b01d27cf Some fixes for dynamodb and python 3. 2014-10-26 20:55:11 -04:00
Steve Pulec
83481b589b Merge pull request #241 from DreadPirateShawn/RouteVPCPeeringConnection
Route vpc peering connection
2014-10-26 20:02:51 -04:00
Arthur Wang
31b55977c9 EC2: Add support for the IncludeAllInstances option in DescribeInstanceStatus 2014-10-24 19:48:29 +00:00
Steve Pulec
203ce6b185 Merge pull request #240 from joekiller/fix/describe_stacks_add_validation_error
Fix/describe stacks add validation error
2014-10-23 23:03:18 -04:00
Steve Pulec
d77bc3ed39 Merge pull request #243 from djmitche/regionalize_instances
Pass ec2_backend to Instance constructor
2014-10-23 23:02:15 -04:00
Dustin J. Mitchell
66c8fb2b52 Pass ec2_backend to Instance constructor
This value is used to look up things like nics and subnets in that
backend.
2014-10-23 22:44:42 -04:00
Dustin J. Mitchell
465629902c use the current ec2 backend, not the default, for subnets 2014-10-23 22:36:05 -04:00
Dustin J. Mitchell
ad200286a5 use the current ec2 backend, not necessarily us-east-1, for vpc operations 2014-10-23 22:26:52 -04:00
Joseph Lawson
0aec1d0f92 create_stack returns stack_id 2014-10-23 14:55:40 -04:00
Joseph Lawson
90191675a2 Deleted Stack Fix and ValidationError for DescribeStacks.
* stop backed from trying to iterate over empty list of deleted stacks.
  * Update DescribeStacks to throw ValidationError if stack name or id doesn't exist.
2014-10-23 14:39:15 -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
Steve Pulec
ef3fcecc87 Merge pull request #238 from DreadPirateShawn/ModifyInstanceAttributeSourceDestCheck
ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'.
2014-10-22 20:25:09 -04:00
dreadpirateshawn
4f847cfb4b ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'. 2014-10-22 15:11:37 -07:00
Joseph Lawson
ff27ef9e91 XML escape body of sqs message body prior to encoding to XML 2014-10-22 16:05:26 -04:00
Steve Pulec
c02ed667d5 Merge pull request #235 from joekiller/enhance/cloudformation_getatt_tags_and_resource_naming
Enhance/cloudformation getatt tags and resource naming
2014-10-21 22:37:01 -04:00
Steve Pulec
bcef13700d Merge pull request #234 from DataDog/add_instance_reason
EC2: Add instance state reason
2014-10-21 22:11:23 -04:00
Joseph Lawson
184d5be54a remove debug exception catch 2014-10-21 21:58:39 -04:00
Steve Pulec
9559c6f746 Merge pull request #230 from joekiller/fix_unsupported_metadata
raise NotImplementedError on unknown metadata path
2014-10-21 19:02:41 -04:00
Joseph Lawson
d4cbc71b0a fix eip physical_resource_id not returning an public_ip if it is in EC2 classic. 2014-10-21 16:37:54 -04:00
Joseph Lawson
54794651d3 implement Fn::Join 2014-10-21 16:29:51 -04:00
Joseph Lawson
d55a0b6ef0 default eip domain to 'standard' for cloudformation creations 2014-10-21 15:59:28 -04:00
Joseph Lawson
a8b967eab0 eip resources have no required properties. 2014-10-21 15:53:38 -04:00
Joseph Lawson
20a69255c3 tweak Fn::GetAtt to return resource_json if resource is not implemented. DRY
This is better than failing out with a misleading Boto 400 error which should only happen when get_cfn_attribute is called but fails.
2014-10-21 14:51:26 -04:00
Joseph Lawson
1d9ffafaa5 create CloudFormation outputs and enable 'Fn::GetAtt' to work. 2014-10-21 12:45:03 -04:00
Arthur Wang
c0049578cb Test filtering get_instances by reason code 2014-10-20 21:00:33 +00:00
Arthur Wang
6963866c7e Add ec2 instance state reason
- Add instance.reason and instance.state_reason
(http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-Item
Type-StateReasonType.html)
- Add ec2 filtering by state-reason-code and state-reason-message
2014-10-20 19:56:34 +00: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
Joseph Lawson
cb88b8783d raise NotImplementedError on unknown metadata path 2014-10-15 13:43:38 -04:00
dreadpirateshawn
89fd71eb16 Route Tables: Added support for associate/disassociate subnets. (fixed idempotency) 2014-10-14 14:23:14 -07:00
dreadpirateshawn
db044df0a9 Route Tables: Added support for associate/disassociate subnets. (added replace route table association) 2014-10-14 11:23:42 -07:00
dreadpirateshawn
5d046c76e5 Route Tables: Added support for associate/disassociate subnets. 2014-10-13 16:19:54 -07:00
Steve Pulec
68d2db55d4 Add VPC state. 2014-10-12 21:51:12 -04:00
Hugo Lopes Tavares
aee47395f7 Implement "name" filter to ec2.models.AMI 2014-10-10 15:14:46 -04:00
Joseph Lawson
b9f747fb4f test ip_ranges when authorizing security group ingress rules 2014-10-06 14:49:37 -04:00
Steve Pulec
b82507e41b Add instance_id to spot instance requests. Closes #210. 2014-10-05 22:55:36 -04:00
Steve Pulec
9de7969d2b Fix merge conflicts. 2014-10-05 21:55:23 -04:00
Steve Pulec
8ab284a9d2 Merge pull request #222 from ralfas/master
Added basic support for SQS MessageAttributes.
2014-10-05 21:10:48 -04:00
Ralfas
76aa9a8b22 Added basic support for SQS MessageAttributes. 2014-10-05 19:10:49 +01:00
Steve Pulec
f0724d458e Merge pull request #216 from DreadPirateShawn/ImplementCopyImage
AMI: Implement copy_image.
2014-10-05 10:55:48 -04:00
dreadpirateshawn
2dfd1799ae AMI: Implement copy_image. (part 4, minor refactor for clarity) 2014-10-01 07:59:02 -07:00
Omer Katz
efa687f41d Added tag filters to some of the entities. 2014-10-01 16:18:46 +03:00
Omer Katz
4ec95bac74 Merge branch 'feature/vpc-filters' 2014-10-01 15:56:23 +03:00
Omer Katz
298cf65569 Added the ability to filter by tag-value and refactored the filters to be generic. 2014-10-01 15:44:54 +03:00
Omer Katz
444ab96b4f Added the ability to filter by tag-key. 2014-10-01 15:33:12 +03:00
Steve Pulec
27ef345b64 Merge pull request #218 from thedrow/feature/vpc-filters
Added the cider block, dhcp options id and tag filter to the VPC backend
2014-10-01 08:04:12 -04:00
Steve Pulec
b0fd12dc35 Merge pull request #219 from joekiller/ami_filter_state
allow get_filter_value to return state of ami and test
2014-09-30 22:25:34 -04:00
Joseph Lawson
7fca88e732 Test Fixes and tag: filter.
* fixed test_ec2.test_amis.test_ami_filters to test for AMIs in the state of 'available'
  * enhanced AMI's to be able to take `tag:` filter.
  * added tag: tests for AMIs
2014-09-30 16:42:52 -04:00
Joseph Lawson
866d8b4ea8 allow get_filter_value to return state of ami and test
* updated Ami.get_filter_value to return the state value of the AMI
  * updated test_ec2.test_amis.test_ami_filters to test for AMIs in the state of 'available'
2014-09-30 16:12:23 -04:00
Omer Katz
89bd78b927 Added the ability to filter vpcs by tags. 2014-09-30 17:58:02 +03:00
Omer Katz
ecb23485d0 VPCs can now be filtered by cider block and dhcp options id 2014-09-30 17:29:50 +03:00
Omer Katz
a1be4b7f61 VPCs can now be filtered by id. 2014-09-30 17:08:36 +03:00
dreadpirateshawn
1940f7c17a AMI: Implement copy_image. (part 2, tweaked launch_permission_groups init) 2014-09-29 12:18:39 -07:00
dreadpirateshawn
a4fdce2e55 AMI: Implement copy_image. 2014-09-29 12:06:36 -07:00