Jerome Bosman
d1789624c4
Fix
2017-05-14 14:21:18 +01:00
Jerome Bosman
227318b037
Fixed typo failing the build
2017-05-14 13:20:18 +01:00
Jerome Bosman
405b8af870
Fixed:
...
moto/ec2/models.py:1996:21: E131 continuation line unaligned for hanging indent
moto/ec2/models.py:2380:21: E131 continuation line unaligned for hanging indent
moto/ec2/models.py:2582:21: E131 continuation line unaligned for hanging indent
moto/ec2/responses/network_acls.py:91:1: E303 too many blank lines (4)
moto/ec2/responses/network_acls.py:198:4: W292 no newline at end of file
2017-05-14 13:12:28 +01:00
Jerome Bosman
b6d9b4f584
Replace and delete Network ACL Entries
2017-05-14 13:03:43 +01:00
Steve Pulec
97b920f6cf
Fix ec2 tags in instance create. Closes #938 .
2017-05-12 19:48:24 -04:00
Steve Pulec
0adebeed24
Merge #913 .
2017-05-10 21:58:42 -04:00
Steve Pulec
408a70992c
Fix filter wildcards. Closes #910 .
2017-05-10 21:33:34 -04:00
Valentín Gutiérrez
6e209bb14c
Implement availability-zone filter for DescribeNetworkInterfaces
2017-03-22 14:36:20 +01:00
Steve Pulec
8a803cdbaf
Better EC2 duplicate SG error.
2017-03-15 22:45:28 -04:00
Steve Pulec
5f3fbff627
Standardize on one account id (123456789012).
2017-03-15 22:21:04 -04:00
Steve Pulec
5807a38092
Merge pull request #858 from spulec/dashboard
...
Add a dashboard
2017-03-12 20:26:42 -04:00
Steve Pulec
0e2fdf94f9
Cleanup lints.
2017-03-12 20:18:54 -04:00
Christian Hellman
c271e31745
Fixed terraform deploy against moto fails ( #857 )
2017-03-12 12:40:49 -04:00
Steve Pulec
caea5f441d
Fix resetting backends.
2017-03-11 23:18:58 -05:00
Steve Pulec
1709208872
First version of dashboard.
2017-03-11 22:45:42 -05:00
Steve Pulec
3b4ef2cf15
Merge in master.
2017-03-05 09:58:39 -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
Steve Pulec
d3df810065
Generalize decorator code.
2017-02-12 00:22:29 -05:00
Steve Pulec
2d03182ae2
Migrate some sqs tests to boto3.
2017-02-11 19:41:09 -05:00
David Wilcox
012dd497f2
make get_all_security_groups filter AND match group ids, not OR them ( #822 )
2017-02-08 21:29:37 -05:00
Jason DeTiberus
1045dca7b2
make instanceTenancy configurable for VPCs ( #819 )
...
* make instanceTenancy configurable for VPCs
* fix issue with setting tenenancy
2017-02-08 21:23:49 -05:00
Jesse Szwedko
55f39265dd
Upgrade to boto 2.45 ( #803 )
...
Adds support for additional regions:
* ca-central-1
* eu-west-2
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
2017-01-18 22:55:22 -05:00
costypetrisor
a967ec0d39
made the Security Group backend throw the same error as AWS if the nb of sec groups limit is hit ( #742 )
...
* made the Security Group backend throw the same error as AWS if the security group limit is hit
* included in the security group limit the count of grants to other security groups & updated the unit tests to cover these
* refactored a few things about the sec group rule count limit
2017-01-18 21:37:55 -05:00
Steve Pulec
a292150087
Throw exception if same security group rule added twice. Closes #737 .
2017-01-11 22:35:27 -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
Justin Wiley
d6890640b2
Fixed time formatting in ec2/models.py ( #778 )
...
* Fixed time formatting in ec2/models.py
* Used freezegun on test that was failing due to time progression causing timestamp differences.
2016-11-23 20:06:35 -06: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
Steve Pulec
44636d1f73
Merge pull request #755 from dtenenba/master
...
bump tag limit from 10 to 50 to align with actual AWS limit
2016-11-06 09:52:20 -05:00
Dan Tenenbaum
37f643ecb4
bump tag limit from 10 to 50 to align with actual AWS limit
2016-11-03 14:12:20 -07:00
Costy Petrisor
8689b40d23
made the security group endpoints that authorize or revoke firewall rules
...
to support batch rules (boto doesn't expose this, but botocore/boto3 does)
2016-10-20 19:34:11 +00:00
rocky4570fft
57ab70b05c
fix up indentation
2016-10-16 00:56:49 +10:00
rocky4570fft
d6f76cbb43
Add dry_run to a number of EC2 services
2016-10-16 00:34:52 +10:00
Steve Pulec
4a92f9fdb0
Fix IP setting.
2016-10-12 22:14:45 -04:00
Steve Pulec
27f1bece9b
Fix assigning public ip to instances. Closes #729 .
2016-10-12 22:02:13 -04:00
Rene Martin
bd9e7deb95
Merge branch 'master' of https://github.com/spulec/moto
2016-10-10 07:47:11 +01:00
Steve Pulec
fef3437db2
Throw error on terminating empty instance list. Closes #697 .
2016-10-09 21:20:53 -04:00
Rene Martin
4fa838e9fd
Keep default dhcp_options id backwards compatiblity
2016-10-08 10:37:57 +01:00
Rene Martin
b06d439a81
Set the right dhcp_options id in the response
...
If the vpc has a dhcp_options associated with it the response should
include the right association.
2016-10-08 10:34:55 +01:00
Jeff Albert
6d7b0c9a15
Fixed issue when invalid resource type is used it would return all tags. Behavoir differed from that of AWS behavior
2016-09-15 14:52:57 -04:00
Mervyn Russell
27495e01e5
Added support for creation date to Ami
2016-08-26 13:43:17 +01:00
rocky4570fft
0161422d21
additional filters to get_all_vpcs
2016-08-14 16:58:35 +10:00
Andrew Gross
b4176050e2
Add volume attachment status
2016-07-22 14:23:42 -04:00
Steve Pulec
3e797d9c50
Merge pull request #658 from kierandoonan/master
...
Add encrypted attribute to Volumes/Snapshots
2016-07-09 21:11:52 -04:00
Steve Pulec
c34481a476
Merge pull request #659 from kierandoonan/fix-tag-filter
...
Fix tag filter
2016-07-09 21:11:12 -04:00
Kieran Doonan
619255e25a
tag-key and tag-value filters now do a regex match
2016-07-05 11:44:39 +01:00
Kieran Doonan
d3dcb8d3b5
tag_filter_matches now uses regex for key/value matches
2016-07-05 11:28:35 +01:00
Kieran Doonan
af0007ad2b
volumes are now encrypted if snapshots are encrypted
2016-07-04 14:40:13 +01:00
Kieran Doonan
44195a9151
added encrypted attribute to snapshots
2016-07-04 14:29:33 +01:00
Kieran Doonan
a3c16bcc77
updated ebs response
2016-07-04 14:09:41 +01:00
Kieran Doonan
f9f0d4b7d9
encrypted attribute now respected in create_volume
2016-07-04 11:30:17 +01:00
Kieran Doonan
957678d33d
create volume response updated
2016-07-04 11:25:51 +01:00
Kieran Doonan
9ea06399ba
describe instances response now shows encrypted status
2016-07-04 11:24:13 +01:00
Kieran Doonan
e8a564b6b4
ebs model now supports encrpyted volumes
2016-07-04 11:23:46 +01:00
Paul Cieslar
706868c7f8
describe_security_groups() support for Boto3
...
Support for list of filters
2016-06-23 11:59:58 +01:00
Riccardo M. Cefala
0ea9823397
add generate_instance_identity_document in ec2 utils
2016-06-11 12:48:01 +02:00
Yann Lambret
52a5346c9e
Add support for VPC attributes management, and fix a bug about the default - not default status of a VPC
2016-05-12 22:36:09 +02:00
Steve Pulec
076a6a7055
Better defaults for AMIs.
2016-05-11 18:28:34 -04:00
Yann Lambret
fdadd24ad3
Extend filtering support for elastic network interfaces
2016-05-08 00:19:01 +02:00
Steve Pulec
d82d64b8bd
Add EBS snapshot filter. Closes #525 .
2016-05-01 22:24:49 -04:00
Steve Pulec
a600deb96a
Fix merge conflicts and add EC2 Instance delete. Closes #576 .
2016-04-28 09:22:31 -04:00
Adam Romanek
b32fbf090a
Fix security group ingress authorization for all protocols with no port spec
2016-04-26 11:00:04 +02:00
Steve Pulec
6be53cf8c2
Merge pull request #594 from yannlambret/fix-security-groups
...
Fix security groups
2016-04-23 19:43:19 -04:00
Steve Pulec
224e92ba17
Merge pull request #592 from aiell0/hotifx/add-additional-instance-filters-issue-581
...
Added ec2 describe-instances filter: 'architecture'
2016-04-23 19:40:15 -04:00
Yann Lambret
5a5f2f12c7
Remove useless statement
2016-04-22 19:12:26 +02:00
Yann Lambret
f9267cff6c
Fix egress rules management to autorize or revoke a security group
2016-04-20 23:01:09 +02:00
Yann Lambret
de68c94a0a
Add the default outboud rule for security groups
2016-04-19 23:50:46 +02:00
Yann Lambret
0882174126
Replace exception message by the one sent by boto, because it is used for bot ingress and egress rules
2016-04-19 23:50:12 +02:00
Lawrence Aiello
cf529ec3f9
Filter dicts have not been implemented in Moto for '%s' yet - mock_ec2
2016-04-18 16:41:57 -04:00
Yann Lambret
c793e0a23d
Filtering implementation for DHCP options sets
2016-04-13 23:19:46 +02:00
Steve Pulec
100ec4e7c8
Merge pull request #579 from roger-lai/instance-az-filter
...
Added availability-zone filtering to instance collections
2016-04-09 22:28:04 -04:00
RogerLai
d759f3a1ad
Added availability-zone filtering to instance collections
2016-04-05 12:55:38 -04:00
Yann Lambret
6d4a48b019
Add support for 'ModifySubnetAttribute' action
2016-04-05 00:17:56 +02:00
Steve Pulec
1ece813131
Merge pull request #570 from digital-abyss/feature/add-private-ip-filter
...
Add ip-address and private-ip-address to the list of filters for instance filtering
2016-03-28 23:53:16 -04:00
igartley
4bfb522020
Add ip-address and private-ip-address to the list of filters for
...
instance filtering.
These are described in
http://boto3.readthedocs.org/en/latest/reference/services/ec2.html#EC2.Client.describe_instances
and map to the instance methods of public_ip() and private_ip()
respectively
2016-03-22 18:11:20 -04:00
Lars Fronius
c94f49cc1e
Only count user-assigned tags for TagLimitExceeded
...
According to
http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html
"Reserved prefix—aws:
AWS-assigned tag names and values are automatically assigned the aws:
prefix, which the user cannot assign. AWS-assigned tag names do not
count towards the tag limit of 10. User-assigned tag names have the
prefix user: in the Cost Allocation Report."
2016-03-15 16:50:57 +01:00
Steve Pulec
d8a277ed55
Merge pull request #555 from yannlambret/fix-describe-route-tables-response
...
Fix a typo in DESCRIBE_ROUTE_TABLES_RESPONSE
2016-03-02 15:10:33 -05:00
Yann Lambret
3afd4e0ea9
Correct a typo in DESCRIBE_ROUTE_TABLES_RESPONSE string (duplicate tagSet) that causes buggy responses
2016-03-02 00:34:45 +01:00
Hugo Lopes Tavares
6222f335f3
Refactor NatGateways methods to use _get_param()
2016-03-01 13:57:41 -05:00
Hugo Lopes Tavares
c689816337
Add CloudFormation support to NatGateway model
2016-03-01 12:02:57 -05:00
Hugo Lopes Tavares
21fb961c6a
Implement NAT Gateway resource
2016-03-01 12:02:57 -05:00
Steve Pulec
b9df567445
Merge pull request #536 from andyjones/task/ec2-placement
...
Support placement when starting new instances
2016-02-14 16:54:05 -05:00
Steve Pulec
800f2403cf
Merge pull request #533 from kevgliss/boto3DescribeInstancesSecurityGroups
...
Ensuring boto3 can correctly identify instance security groups
2016-02-14 16:47:01 -05:00
andy
7120b5e4b1
Support placement when starting new instances
2016-02-10 17:59:48 +00:00
kevgliss
c5016d9ddb
ensuring boto3 can correctly identify instance security groups
2016-02-04 16:03:20 -08:00
gigimon
1ff24981ee
* add filter by instance-id for describeAdresses
2016-02-03 18:05:25 +03:00
gigimon
cd062fc5fa
* fix one place
2016-02-03 14:53:18 +03:00
gigimon
52eb16d765
* change api version to 2013-10-15
2016-02-02 16:15:18 +03:00
Steve Pulec
f35986b3fc
Merge pull request #517 from DenverJ/volume_snapshot_filters
...
Add filter for volume-id on volumes.
2016-01-24 16:19:55 -05:00
Denver Janke
ee33ff582c
Add filter for volume-id on volumes.
2016-01-20 12:24:33 +10:00
kevgliss
093a64c1c8
adding error checking on cidrs
2016-01-15 12:57:43 -08:00
kevgliss
6bc4a8b38a
Adds support for authorizing and revoking egress permissions
2016-01-15 12:36:11 -08:00
Steve Pulec
defd106523
Merge pull request #506 from DenverJ/volume_snapshot_filters
...
Add filters for describeVolumes and describeSnapshots.
2016-01-11 13:30:56 -05:00
Denver Janke
82b0b12e45
Add filters for describeVolumes and describeSnapshots.
2016-01-11 15:46:30 +10:00
Steve Pulec
35478f3a44
Fix AZs for run_instances. Closes #490 .
2016-01-10 00:54:53 -05:00
Steve Pulec
d2302bae21
Add Customer Gateway Support. Closes #465
2016-01-08 16:48:01 -05:00
Steve Pulec
42423f47e7
Merge pull request #466 from EarthmanT/support_get_all_dhcp_options_set
...
Adding Support for Get All DHCP Options
2015-12-21 15:18:41 -05:00
Steve Pulec
39fef4d367
Merge pull request #468 from EarthmanT/add_support_for_vpn_connections
...
Adding Support for VPN Connections
2015-12-21 15:18:05 -05:00
Marco Rucci
284641e8cf
Add support for default VPCs and subnets.
...
The first VPC created will be elected as default.
All subnets of the default VPC are considered default for their availability zone.
2015-12-06 20:58:54 +01:00
earthmant
c5bf9d8c94
replacing the usage
...
of dhcp_opt_ids_from_querystring with sequence_from_querystring
2015-12-03 13:49:08 +02:00
earthmant
76a939cee6
making requested fix
...
used sequence_from_querystring and removed added functon vpn_connection_ids_from_query_string
added tests
2015-12-03 13:35:48 +02: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
earthmant
39c3c5c8aa
Adding Support for VPN Connections
...
support create, delete, describe
2015-11-25 16:38:02 +02:00
earthmant
41873b59f7
Adding Support for Get All DHCP Options
...
add DescribeDhcpOptionsResponse
support filtering describe_dhcp_options
add get_all_dhcp_options
2015-11-25 11:50:58 +02:00
earthmant
18fe3e41e9
Support default ACL in a VPC
...
a vpc usually has a default acl
this makes sure that moto flags it
and that the describe response has it in there
2015-11-23 18:07:51 +02:00
earthmant
4b59c6b907
Support Associate Network ACL
...
add the new_association_id property to NetworkACL object so that the template render for replace adds the ID and the associate_network_acl receives a response
2015-11-23 15:16:46 +02:00
Steve Pulec
cddf139bbc
Add ability to create EBS volumes from snapshots. Closes #447 .
2015-11-03 09:37:02 -05:00
Steve Pulec
d3e4c2c4b5
Add ability for specific backends to enable template escaping. Closes #441 .
2015-11-03 09:25:47 -05:00
Steve Pulec
73452c79f7
Add milliseconds to EC2 launch time. Closes #445 .
2015-11-02 23:33:39 -05:00
Steve Pulec
1d58aae42a
Merge pull request #438 from ZuluPro/instancetypes
...
Added describe instance types
2015-11-01 14:30:32 -05:00
Enis Afgan
e07894c6e4
When adding security group rules, allow a source group only to be specified - as per boto docs & functionality
2015-10-29 07:27:35 +01:00
nuwan_ag
0b3ad166c0
Set snapshots to be in a completed state after being created and added
...
test case
2015-10-14 02:34:36 +11:00
Steve Pulec
37f86626cc
Merge pull request #425 from ZuluPro/random_key_pair
...
Remade ec2.utils.random_key_pair for be really random
2015-10-05 18:25:17 -04:00
ZuluPro
b85b415977
Implemented import key pair
2015-09-24 17:34:08 +02:00
Anthony Monthe
0999a49b5b
Added describe instance types
2015-09-23 14:50:47 +02:00
ZuluPro
23c2e7835e
Remade ec2.utils.random_key_pair for be really random
2015-09-15 20:09:35 -04:00
Steve Pulec
92c96b6788
Fix bug in creating SecurityGroups for nics. Closes #391 .
2015-08-03 20:56:05 -04:00
Steve Pulec
ac4aef87a1
Unused exception.
2015-08-01 19:44:37 -04:00
Rob Walker
e33777b60c
tidy up imports.
2015-07-26 09:51:37 +10:00
Rob Walker
2bb79824ce
Volume attachments to show in instance.
...
Volumes and Snapshots to be searchable by their id
Placement of instance to match region connection
Times for creation and attachment to show based on api call
2015-07-26 09:37:20 +10:00
Steve Pulec
4020141478
Fix cloudformation subnet tagging.
2015-07-13 19:27:00 -04:00
Steve Pulec
20306c9b24
Set more default datetimes.
2015-06-22 17:02:10 -04:00
Steve Pulec
640cd2ce44
Better EC2 NIC Attachment datetimes.
2015-06-22 16:52:12 -04:00
Jeffrey Gelens
e722b67f36
Merge branch 'master' of https://github.com/spulec/moto into 0.4.1-threadsafe
...
* 'master' of https://github.com/spulec/moto : (25 commits)
Add @zkourouma to authors.
0.4.2
Fix bug where listener certificate was not being saved correctly when creating an elb. Added test to cover that case.
[dynamodb2] adds lookup method to Table class
Add IAM list_groups and list_groups_for_user. Closes #343 .
Fix for deleting Route53 record sets with set identifiers. Closes #342 .
Use dummy date instead of an invalid date
Adding support for comments on hosted zones.
Add availability zone support to Subnets created via CloudFormation
Make availability zone dynamic in Subnet Response templates
Add filter "availabilityZone" to DescribeSubnets and add availability zone support too
allow starting without reseting
Fix bug with empty string for instance vpc_id. Closes #337 .
Fix default security group description.
Update responses.py
Add @mrucci to authors.
Fix merge conflicts.
Add support for ELB attributes.
cast to int when doing math.
General cleanup.
...
2015-05-29 11:35:14 +02:00
Jeffrey Gelens
f5c4ac0b44
Merge branch 'master' of https://github.com/silveregg/moto into 0.4.1-threadsafe
...
* 'master' of https://github.com/silveregg/moto : (22 commits)
filtering the items is needed because of defaultdict is not threadsafe and returns an empty dict which results in an exception here
add tests for list_endpoints_by_platform_application
add mock for list_endpoints_by_platform_application method
[S3]Only add multipart part_id to partlist if it is not already in there. Closes #324 .
Fix etag for reduced min part size.
Add test_multipart_duplicate_upload
Fix reduced_min_part_size so that tests run
Fix authors
Add @mikegrima to authors
Fixed how parameters are passed in following clarification on GitHub comments.
Added in test for the boto IAM method: list_instance_profiles_for_role()
Change SecurityGroupBackend.{authorize,revoke}_security_group_ingress() methods to receive group name or id, never both
Add support to AWS::EC2::SecurityGroupIngress creation
Add @aaltepet to authors.
Add publish command.
Add support to tag filtering to Security Groups
slight change in formatting
fix test for ec2 instance type filter
Update minimum support boto version.
support 'instance_type' filter
...
2015-05-29 11:34:23 +02:00
Francisco De Freitas
e320190b42
Use dummy date instead of an invalid date
2015-04-28 13:39:48 +02:00
Hugo Lopes Tavares
5160fac9b7
Add availability zone support to Subnets created via CloudFormation
2015-04-08 16:48:02 -04:00
Hugo Lopes Tavares
65d51a5844
Make availability zone dynamic in Subnet Response templates
2015-04-08 16:47:43 -04:00
Hugo Lopes Tavares
56cb06041c
Add filter "availabilityZone" to DescribeSubnets and add availability zone support too
2015-04-08 15:07:29 -04:00
Steve Pulec
82214d2bc2
Fix bug with empty string for instance vpc_id. Closes #337 .
2015-03-28 14:30:30 -04:00
Steve Pulec
bdfbdd8b1c
Fix default security group description.
2015-03-28 14:13:28 -04:00
Jeffrey Gelens
c2f2c16892
Fixed non threadsafe code
2015-03-16 13:13:40 +01: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
Steve Pulec
c0e80de4d3
Merge pull request #317 from spulec/ec2-security-group-tag-filtering
...
Add support to tag filtering to Security Groups
2015-02-24 18:00:51 -05:00
Hugo Lopes Tavares
20d8318997
Add support to tag filtering to Security Groups
2015-02-24 17:56:26 -05:00
Andy Altepeter
e17c7bbd7a
support 'instance_type' filter
2015-02-23 11:03:59 -06:00
Andy Altepeter
53ec30e3ba
support 'tag-key' instance type
2015-02-23 10:45:16 -06:00
Steve Pulec
747563e4ff
Cleanup tag escape testing.
2015-02-17 22:18:40 -05:00
Dennis Brandenburg
3bd1a62fe3
Escaping tags individually for building the describe_tags template to support get_all_tags
2015-02-17 10:23:15 +01:00
Steve Pulec
136873d49e
Cleanup public IPs for EC2 classic instances and fix some default ENI things.
2015-02-14 14:42:20 -05:00
Steve Pulec
5ededbb297
Fix security group tags. Closes #301 .
2015-02-14 08:57:14 -05:00
Steve Pulec
4d4cb39769
Merge pull request #297 from kouk/multipart_errors
...
Support for client supplied part order in multipart uploads
2015-02-14 08:30:10 -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
Konstantinos Koukopoulos
7c719269be
create a base RESTError exception
2015-02-10 15:31:28 +02:00
dreadpirateshawn
d631f869c1
ModifyImageAttribute: Added support for user permissions.
2015-01-23 09:43:54 -08:00
Steve Pulec
dd5cab8c63
Return random IP addresses for instances.
2015-01-21 21:58:38 -05:00
Steve Pulec
b1c41820f7
Cleanup EC2 launch time code a bit.
2015-01-19 13:44:15 -05:00
Chris Henry
6743a41b26
Fix merge conflict,
2015-01-18 16:37:56 -05:00
Chris Henry
1f2a913d3a
Merge branch 'master' of github.com:behanceops/moto into feature-instance-launch-time
...
Conflicts:
moto/ec2/models.py
2015-01-18 16:37:27 -05:00
Chris Henry
19a1b74c5b
Change timestamp format to ISO 8601, as per http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html
2015-01-18 16:20:59 -05:00
Chris Henry
77185f9bee
Change timestamp format to ISO 8601, as per http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html
2015-01-18 16:18:34 -05:00
Chris Henry
062256ada3
Use the current time when launching an instance.
2015-01-18 15:53:59 -05:00
Steve Pulec
adb26986eb
Add route53 ResourceSet to Cloudformation.
2015-01-17 15:37:46 -05:00
Steve Pulec
166f4893ba
Add cloudformation for RDS.
2015-01-11 16:15:08 -05:00
Steve Pulec
56007660d8
Cleanup parameter parsing.
2014-12-31 13:23:08 -05:00
dreadpirateshawn
7ce83082ca
Merge remote-tracking branch 'origin/master' into ImproveTemplatePerformance
...
Conflicts:
moto/s3/responses.py
2014-12-12 12:51:29 -08:00
dreadpirateshawn
9affa7753d
Performance: Leverage jinja2's Environment to cache compiled Templates.
2014-12-12 12:46:07 -08:00
Steve Pulec
845c468f32
Merge pull request #278 from cameron-r/master
...
Add filtering of instances by security group id
2014-12-10 20:11:25 -05:00
Cameron Rowshanbin
573a73aa01
With @ethome, add filtering of instances by security group id
2014-12-10 11:53:40 -06:00
Tyler Sanders
b513d69313
Add support for route table routes to target virtual private gateways.
2014-12-09 12:07:14 -06:00
Tyler Sanders
db7757347a
Detach virtual private gateway support
2014-12-02 10:40:05 -06:00
Tyler Sanders
166fd69515
Virtual Private Gateway functionality
2014-12-02 10:28:09 -06:00
Tyler Sanders
7476c63119
Update upstream branch 'master' into instance_modify_security_groups
2014-11-27 11:14:46 -06:00
Tyler Sanders
9cbe8d57f4
Support instance security group/groupSet attribute modification and description
2014-11-27 11:05:39 -06:00
Kyohei Akiyama
1a61b973e4
The filter condition was added to VPC and RouteTable class.
2014-11-27 03:54:42 +00:00
Steve Pulec
ef3e5448ea
Add cluster subnet group CRUD.
2014-11-23 21:36:19 -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
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
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
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
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
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
2d65b0a020
Some EC2 fixes for alternative regions.
2014-10-30 22:46:24 -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
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
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
dreadpirateshawn
4f847cfb4b
ModifyInstanceAttribute: Added support for 'SourceDestCheck.Value'.
2014-10-22 15:11:37 -07: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
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
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
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
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
Omer Katz
a63e6d2459
netbios type should be coerced to integer.
...
Otherwise the check always fails.
2014-09-29 18:41:50 +03:00
dreadpirateshawn
04a4ae88bf
Network Interfaces: Added attach/detach support.
2014-09-12 10:53:37 -07:00
dreadpirateshawn
f4d2623a4c
DescribeInstances: Added block_device_mapping to XML
2014-09-11 11:29:20 -07:00
Steve Pulec
b8afb3be90
Merge pull request #198 from DreadPirateShawn/VPCDefaultSecurityGroup
...
VPC: Added default security group upon creation.
2014-09-10 20:57:47 -04:00
Steve Pulec
85f9193dc7
Merge pull request #196 from DreadPirateShawn/SecurityGroupsFilteringFix
...
Security Groups: Fix for filtering support.
2014-09-10 20:55:47 -04:00
Shawn Falkner-Horine
c2cd5b346f
Routes: Fixed vpc_peering_connection_id in describe route tables.
2014-09-10 12:22:01 -07:00
Shawn Falkner-Horine
de69a58cf8
Cleanup: Removed duplicate import.
2014-09-10 11:43:27 -07:00
Shawn Falkner-Horine
2cf97ef193
VPC: Added default security group upon creation.
2014-09-10 11:15:43 -07:00
Shawn Falkner-Horine
3f266ebc2b
Security Groups: Fix for filtering support.
2014-09-10 09:42:38 -07:00
Steve Pulec
11dbe5c10f
Fix for vpc id in eni template.
2014-09-09 21:14:16 -04:00
Steve Pulec
f0a6510ca3
Merge pull request #191 from DreadPirateShawn/ImplementNetworkInterfaces
...
Network Interfaces: Initial implementation.
2014-09-09 21:12:06 -04:00
Steve Pulec
1bbb7a70ad
Merge pull request #188 from DreadPirateShawn/ImplementRouteTables
...
Route Tables / Routes: Initial implementation.
2014-09-09 20:48:43 -04:00
Steve Pulec
2cbdef663f
Merge pull request #186 from bobbyi/spot_instance_tags
...
Spot instance tags
2014-09-08 23:22:13 -04:00
Steve Pulec
3feaa39bd3
Merge pull request #185 from bobbyi/filter_instances_by_tag
...
Support filtering instances by tag
2014-09-08 23:19:43 -04:00
Steve Pulec
c1497886f2
Small IAM param parsing cleanup.
2014-09-08 23:11:20 -04:00
Shawn Falkner-Horine
9296779999
Network Interfaces: Initial implementation. (fixed ElasticAddress cloudformation 'associate_address' call)
2014-09-08 17:02:37 -07:00
Shawn Falkner-Horine
42f8cea5e6
Network Interfaces: Initial implementation.
2014-09-08 16:50:18 -07:00
Shawn Falkner-Horine
8e330f43b2
Route Tables / Routes: Initial implementation. (Fixed iteritems reference.)
2014-09-05 08:48:44 -07:00
Shawn Falkner-Horine
02f1dc0b3e
Route Tables / Routes: Initial implementation. (Fixed deletion of main route table via deletion of VPC.)
2014-09-05 08:45:36 -07:00
Shawn Falkner-Horine
534039f465
Route Tables / Routes: Initial implementation. (Fixed modification of dict while looping said dict.)
2014-09-04 17:07:00 -07:00
Shawn Falkner-Horine
22e6166e4e
Route Tables / Routes: Initial implementation.
2014-09-04 16:23:59 -07:00
Bobby Impollonia
8ac549569e
Add support for filtering spot instance requests
2014-09-04 12:39:14 -07:00
Bobby Impollonia
f029fe672d
Add support for getting spot instance request tags
2014-09-04 12:38:09 -07:00
Bobby Impollonia
4403ea955f
Support filtering instances by tag
2014-09-04 07:30:19 -07:00
Rory-Finnegan
c2dd4a7ee4
Fixed py33 errors.
2014-09-03 19:52:23 -04:00
Rory-Finnegan
665beda466
Added support to get_all_security_groups endpoint to actually filter groups.
...
- Filters by groupnames, group_ids and a filters. However, the filters option doesn't
support owner-id and tags since neither attribute was readily available via the SecurityGroup object.
- Also included a basic test to confirm it works.
2014-09-03 16:57:51 -04:00
David Baumgold
eedb4c4b73
Support Python 3 using six
2014-08-28 10:57:43 -04:00
Steve Pulec
cfda83dcba
Merge pull request #180 from DreadPirateShawn/AMIsModifyAndDescribe
...
AMIs: Added ModifyImageAttribute and DescribeImages filtering.
2014-08-27 21:28:15 -04:00
Steve Pulec
ca13c141d3
Merge pull request #176 from singingwolfboy/unicode_literals
...
Unicode literals
2014-08-27 21:19:50 -04:00
Shawn Falkner-Horine
f9246def75
AMIs: Added ModifyImageAttribute and DescribeImages filtering.
2014-08-27 11:53:44 -07:00
Shawn Falkner-Horine
acaad7026b
Remove VIM swap files.
2014-08-27 08:59:51 -07:00
David Baumgold
4201e6b430
from __future__ import unicode_literals
2014-08-27 11:33:55 -04:00
Steve Pulec
b69179818c
Merge pull request #175 from DreadPirateShawn/SnapshotAttributes
...
Implementation for ModifySnapshotAttribute and DescribeSnapshotAttribute.
2014-08-26 20:53:46 -04:00
Steve Pulec
8f79d71f3f
Merge pull request #172 from DreadPirateShawn/CreateSubnetVPCValidation
...
Create subnet vpc validation
2014-08-26 20:36:26 -04:00
Steve Pulec
1846f28b41
Merge pull request #170 from DreadPirateShawn/DescribeSubnetsFiltering
...
DescribeSubnets: Added support for 'filters' parameter.
2014-08-26 20:35:19 -04:00
Hugo Lopes Tavares
bce64599f7
Get region names in a backward compatible way
2014-08-26 18:21:26 -04:00
Shawn Falkner-Horine
ebc0037659
Implementation for ModifySnapshotAttribute and DescribeSnapshotAttribute.
2014-08-26 15:16:58 -07:00
Hugo Lopes Tavares
82eef28937
Add multi-region support to EC2 Instances
2014-08-26 17:56:56 -04:00
Shawn Falkner-Horine
0ecae450a1
CreateSubnet: Added VPC ID validation.
2014-08-26 14:04:34 -07:00
Shawn Falkner-Horine
c89e7c6de1
DescribeSubnets: Added support for 'filters' parameter. (fixed NotImplemented error message)
2014-08-26 13:31:08 -07:00
Shawn Falkner-Horine
d683c3b291
DescribeSubnets: Added support for 'filters' parameter.
2014-08-26 13:25:37 -07:00
Shawn Falkner-Horine
d160f2c6d6
Error handling: Model-level validations, proper error responses. (removed deprecated error template)
2014-08-25 14:02:02 -07:00
Shawn Falkner-Horine
9938995e05
Error handling: Model-level validations, proper error responses. (added coverage for new instance status call)
2014-08-25 14:00:35 -07:00
Shawn Falkner-Horine
5c46898b17
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
moto/ec2/responses/instances.py
2014-08-25 13:43:23 -07:00
Shawn Falkner-Horine
071c03e216
Error handling: Model-level validations, proper error responses.
2014-08-25 10:54:47 -07:00
Andres Riancho
c65ff170b2
Fix NotImplementedError: The describe_instance_status action has not been implemented #163
2014-08-20 14:52:23 -03:00
Andres Riancho
4b1b0f8514
Minor refactoring to avoid code duplication
2014-08-20 14:51:24 -03:00
Steve Pulec
195505948b
Merge pull request #162 from andresriancho/master
...
Fix block device mapping #160
2014-08-20 07:39:24 -04:00
Steve Pulec
9d06ccf0cd
Merge pull request #156 from DreadPirateShawn/VPCPeeringConnections
...
Add support for VPCPeeringConnections.
2014-08-20 07:38:28 -04:00
Andres Riancho
9c1032da58
Fix #160 , implemented blockDeviceMapping modify_attribute set
2014-08-20 08:20:08 -03:00
Steve Pulec
d2fc7bb7f9
Merge pull request #139 from kouk/backendaccess
...
general support for access to backend models
2014-08-02 10:43:35 -04:00
Shawn Falkner-Horine
42a305239c
Add support for VPCPeeringConnections.
2014-07-31 14:41:30 -07:00
Colin Johnson
853d6768ce
moto-152 - return vpc.id if exists else return nothing
2014-07-25 05:16:53 +00:00
Konstantinos Koukopoulos
fa8485b599
provide SpotRequestBackend with model accessor
2014-06-18 10:46:58 +03:00
Steve Pulec
aec7d8e998
Merge pull request #138 from IlyaSukhanov/master
...
Implement internet gateway mocking
2014-06-17 22:28:16 -04:00
Konstantinos Koukopoulos
60bba47624
switch to using boto's SpotInstanceRequest in backend
2014-06-17 19:04:38 +03:00
Ilya Sukhanov
bcb0e7a3d4
Implement internet gateway mocking
2014-06-08 09:45:18 -04:00
Christian Wittwer
96843fdfe8
Attribute instance-id added to filter dict
2014-06-05 10:52:41 +02:00
Steve Pulec
955b4c6c4a
Add tagging to all applicable EC2 objects. Closes #66 .
2014-05-11 19:00:28 -04:00
Steve Pulec
06481ebe7e
Require a GroupDescription for security group creation. Closes #112 .
2014-05-11 17:37:00 -04:00
Chris St. Pierre
fab37942c4
Consistent _get_multi_param() function in responses
...
This abstracts _get_multi_param() into BaseResponse and makes it
always ensure that the string it has been given ends with a '.'. It
had been implemented in three different places, and in use it rarely
postpended a trailing period, which could make it match parameters it
shouldn't have.
2014-05-08 10:44:41 -04:00
Chris St. Pierre
745368242e
Allow passing security groups by ID when creating instances
2014-05-07 10:04:07 -04:00
Chris St. Pierre
b244457c4f
Added key_name support to instances
2014-05-07 10:04:07 -04:00
Chris St. Pierre
4ba4dd5e26
Added subnet_id support to instances
2014-05-07 10:04:07 -04:00
Chris St. Pierre
5ba2b3cb9a
Added instance_type support to instances
2014-05-07 10:04:07 -04:00
Ilya Sukhanov
15b750a277
Implement ec2 dhcp_options
2014-04-22 17:47:40 -04:00
Steve Pulec
815bb8846c
Change subnets to only have a reference to the vpc_id.
2014-03-28 16:37:55 -04:00
Steve Pulec
1c10d887c0
Fix bug with Gateway Id not being required for Routes
2014-03-28 16:17:43 -04:00
Steve Pulec
ef876dd27e
Fix merge conflicts. Add basic cloudformation support. Closes #111 .
2014-03-27 19:12:53 -04:00
Steve Pulec
140f1c2000
Add ability to launch instances with security groups.
2014-03-22 14:02:47 -04:00
Jon Haddad
77ab6d2022
removed unnecessary itertools chain.
...
added success test case around authorize & revoke
2014-03-21 13:31:00 -07:00
Jon Haddad
ecaf53fd28
fix for VPC revoking of rules related to groups
2014-03-20 17:53:39 -07:00
Jon Haddad
2b4fe552d1
VPC support for adding rules improving
2014-03-20 17:52:49 -07:00
Jon Haddad
cbdc8ba183
We're getting back the correct group from get_security_group_from_id,
...
but hitting another issue with the source_group_name also using an id
rather than a name
2014-03-20 17:26:08 -07:00
Konstantinos Koukopoulos
8db4097861
raise NotImplementedError when Filters are used in describe_key_pairs
2014-02-24 16:35:03 +02:00
Konstantinos Koukopoulos
e19967b7d5
support names in DescribeKeyPairs
2014-02-24 15:22:08 +02:00
Konstantinos Koukopoulos
72ae98128c
really delete key pair
2014-02-24 13:38:46 +02:00
Konstantinos Koukopoulos
e7d2c2687a
implement delete_key_pair, test zero case
2014-02-24 13:34:39 +02:00
Konstantinos Koukopoulos
99c6b8acbe
test DescribeKeyPairs with more than one key pair
2014-02-24 13:20:47 +02:00
Konstantinos Koukopoulos
35063ca743
make duplicate key pair test pass
2014-02-24 13:13:23 +02:00
Konstantinos Koukopoulos
ddfe478479
implement test for create_key_pair
2014-02-24 13:03:26 +02:00
Konstantinos Koukopoulos
65beb30054
create KeyPairBackend in ec2 model, use in keypair test
2014-02-24 12:42:50 +02:00
Konstantinos Koukopoulos
d438b05d41
return empty key pairs response
2014-02-24 12:18:52 +02:00
sgarcialaguna
e1366165d1
Fixed typo in REQUEST_POST_INSTANCES_TEMPLATE
2014-01-29 19:41:47 +01:00
Hugo Lopes Tavares
4e88d79da2
Refactor AmiBackend.describe_images: make logic of missing image simpler
2014-01-28 18:53:12 -05:00
Hugo Lopes Tavares
90aa87d53e
Fix DescribeImages to throw error if AMI requested does not exist
2014-01-28 18:15:29 -05:00
Steve Pulec
262b698149
Fix for security groups with other security source groups. Closes #80 .
2014-01-19 06:54:25 -05:00
Steve Pulec
c1f224954e
Cleanup some style
2013-12-29 08:59:07 -05:00
Steve Pulec
74e2c19865
Cleanup unused imports
2013-12-29 08:40:38 -05:00
Steve Pulec
f3890ffc31
Fix for EC2Response MRO
2013-12-29 08:34:07 -05:00
Steve Pulec
ec938ef904
Convert all EC2Response Mixins to subclasses.
2013-12-29 08:25:13 -05:00
Jon Haddad
48ee4b600b
updated SC methods to work with a group_id, which must be used if it's a group in a VPC
2013-12-06 14:34:13 -08:00
Jon Haddad
0e316d8fc3
fixed spot instances creation
2013-12-05 16:45:18 -08:00
Jon Haddad
0712d40f71
added vpc_id to deletion
2013-12-05 16:39:25 -08:00
Jon Haddad
c2dad5357f
correctly passing vpc_id through to revoke
2013-11-01 12:56:53 -07:00
Jon Haddad
9cbac9bbf4
reworked internals, groups is now a dict of dicts. need to fix errors coming back from revoking and deleting groups
2013-10-30 20:11:15 -07:00
Jon Haddad
6ad8e109e4
more concise jinja
2013-10-30 18:59:21 -07:00
Jon Haddad
9ae144bad8
correctly getting the vpc address back
2013-10-30 18:50:42 -07:00
Ilya Sukhanov
f8f8d25426
Implement Elastic IP
2013-10-08 22:30:21 -04:00
Ilya Sukhanov
a63601e481
Implement ImageId parameter in DescribeImages
2013-10-08 22:30:21 -04:00
Ilya Sukhanov
b5a454e0da
When manipulating instance save end states instead of transitional
...
When starting an instance it should eventually enter running state. At
least in the normal case. So we report pending but save running, this
way when client requests state of instance a second time, we reply with
running.
Similar thing for stop/terminate/reboot.
2013-10-08 22:30:21 -04:00
Steve Pulec
3bddbb4af3
Test out py26 with new HTTPretty
2013-10-03 20:34:13 -04:00
Steve Pulec
a0e2cb3d98
Add EC2 spot instances
2013-08-17 18:11:29 -04:00
Steve Pulec
421a5e60af
Fix EC2 response tags. Closes #37 .
2013-07-17 12:48:21 -04:00
Steve Pulec
af31744dbd
If ec2 filtering exclude all instances for a reservation, remove the reservation from the results.
2013-07-08 22:25:25 -04:00
Steve Pulec
46f9430bdd
Fix bug with modifying original reservations
2013-07-08 22:20:55 -04:00
Steve Pulec
257ca9f771
Add ec2 filtering by instance state
2013-07-08 21:18:05 -04:00
Steve Pulec
76ea9172da
Clean up ec2 instance state
2013-07-08 20:29:13 -04:00
Steve Pulec
fda5f83f87
Properly implement ec2.get_all_instances filtering by instance id
2013-07-08 19:25:47 -04:00
Steve Pulec
9f19662d1c
allow passing user data to run_instances
2013-05-17 19:35:53 -04:00
Steve Pulec
47bd4c49a3
attempting to move to upstream httpretty
2013-05-03 19:33:13 -04:00
Steve Pulec
8fe0c91853
Fix services to work better with other regions. Closes #17 .
2013-04-13 18:22:26 -04:00
Steve Pulec
cd518d060e
move to httpretty fork instead of bundling it.
2013-03-17 18:13:21 -04:00
Steve Pulec
2d98a9caef
some more tests to bump coverage
2013-03-11 00:12:22 -04:00
Steve Pulec
316418df55
add subnets
2013-03-05 22:53:53 -05:00
Steve Pulec
584f1f01b6
add vpc commands
2013-03-05 22:33:41 -05:00
Steve Pulec
0d51349662
add get_console_output
2013-03-05 22:11:58 -05:00
Steve Pulec
e993917d4c
pep8
2013-03-05 08:35:18 -05:00
Steve Pulec
a728b2581a
Adding server mode
2013-03-05 08:14:43 -05:00
Steve Pulec
98fc1eeab9
update ec2 calls for boto 2.5 compat
2013-02-28 00:08:35 -05:00
Steve Pulec
459697508e
remove extra newline
2013-02-27 01:20:10 -05:00
Steve Pulec
51c5f66aac
change all mocking to include http and https
2013-02-27 01:15:26 -05:00
Steve Pulec
d32059f301
pep8
2013-02-26 00:31:01 -05:00
Steve Pulec
935e6bd95d
fix tag deletion
2013-02-25 23:37:01 -05:00
Steve Pulec
1b3eca72b0
clean up old ec2 code
2013-02-25 23:09:45 -05:00
Steve Pulec
89364ed864
Adding sqs queue creation
2013-02-23 22:26:46 -05:00
Steve Pulec
e261b82f29
add most of the snapshot implementation
2013-02-23 18:01:41 -05:00
Steve Pulec
f92a3ec00f
volume attaching and detaching working
2013-02-23 17:37:55 -05:00
Steve Pulec
7464fcbbe9
clean up ec2 response init
2013-02-23 16:35:25 -05:00
Steve Pulec
0927e107fb
when things arent implemented yet raise exception, not pdb
2013-02-23 16:32:40 -05:00
Steve Pulec
1c8af2881a
add security group ingress rules
2013-02-23 16:27:43 -05:00
Steve Pulec
31f992fbe5
add, delete, describe security groups
2013-02-23 15:26:54 -05:00
Steve Pulec
fbd9206f23
add basic zone and region endpoints
2013-02-23 14:51:19 -05:00
Steve Pulec
351aca3c68
clean up instance attribute modification and add base AMI stuff
2013-02-23 14:22:09 -05:00
Steve Pulec
0bd4d57ef2
raise NotImplementedError if not implemented
2013-02-22 07:55:48 -05:00
Steve Pulec
27a086409e
adding ec2 stubs
2013-02-21 23:13:01 -05:00
Steve Pulec
0df2864f99
convert ugly camelcase methods to nice, clean underscores
2013-02-21 19:34:57 -05:00
Steve Pulec
f824110ceb
add ec2 tags
2013-02-20 23:19:43 -05:00
Steve Pulec
568d99dd42
refactor ec2 response structure
2013-02-20 22:21:55 -05:00
Steve Pulec
1d42cc3f53
add instance rebooting
2013-02-19 23:55:01 -05:00
Steve Pulec
1af038290d
add instance attribute description and modification
2013-02-19 23:01:19 -05:00
Steve Pulec
7907585b65
make instance id parsing more generic
2013-02-18 23:06:23 -05:00
Steve Pulec
3a9c757e46
add instance stop/start
2013-02-18 21:56:22 -05:00
Steve Pulec
4283cca63c
clean up urls. start to clean up responses
2013-02-18 21:22:03 -05:00
Steve Pulec
f8633cbab7
rename backends
2013-02-18 16:31:42 -05:00
Steve Pulec
d1bb638ec7
remove .pyc
2013-02-18 16:28:08 -05:00
Steve Pulec
77d6df6531
basic ec2 and s3 working
2013-02-18 16:09:40 -05:00