Commit Graph

4287 Commits

Author SHA1 Message Date
Dmytro Kazanzhy
a94f72cb90
RDS cluster engines' versions fix (#4844) 2022-02-08 16:37:05 -01:00
Viren Nadkarni
38bf0265c1
SES: Fix GetSendStatistics response template (#4826) 2022-02-08 16:24:41 -01:00
Bert Blommers
eba0fb8adc
HTTPBin is unavailable quite often - try example.com instead (#4843) 2022-02-08 15:35:37 -01:00
Sam Watson
433a57da68
raise an error on attempt to copy s3 object to itself without changing anything (#4838) 2022-02-08 09:02:09 -01:00
Alastair McCormack
1ab00b48d7
Restrict initiate_auth and admin_initiate_auth AuthFlow (#4836) 2022-02-07 22:55:51 -01:00
Cristopher Pinzón
c25aae0d9a
Allow "True" in SQS Queue boolean attributes (#4830) 2022-02-07 22:53:25 -01:00
Daniel Fangl
87dfa2e922
correctly filter describe_managed_prefix_lists, add test for the behavior (#4837) 2022-02-07 18:07:15 -01:00
Edison Gustavo Muenz
32373d2ac5
ec2: Add GpuInfo to describe_instance_types (#4828) 2022-02-07 14:13:50 -01:00
mgshirali
60e26e5892
These changes address issue 4834. (#4835) 2022-02-07 14:10:12 -01:00
Cristopher Pinzón
500ed1a90b
Addition of bucket name when creating a key object (#4824) 2022-02-06 23:23:39 -01:00
Bert Blommers
fbefae59c5
Non-unittest classes use a lowercase setup-method (#4833) 2022-02-05 10:47:38 -01:00
Bert Blommers
bb6fb1200f
ELBv2 - Allow IAM certificates when calling modify_listener (#4823) 2022-02-04 20:59:23 -01:00
Bert Blommers
e1ffd27201
Increase Batch timeouts, in case Docker takes a while to start (#4827) 2022-02-04 20:10:46 -01:00
Bert Blommers
0a1bb6bae1
Route53 - Reusable Delegation Sets (#4817) 2022-01-30 23:53:05 -01:00
Bert Blommers
2fd6f34060
EC2 - VpcEndpointServiceConfiguration (#4815) 2022-01-30 22:00:26 -01:00
Paul
f554ad3997
implement get_hosted_zone_count() api (#4814) 2022-01-30 12:25:36 -01:00
Dmytro Kazanzhy
cb60761510
Added event subscriptions: create_event_subscription, delete_event_subscription, describe_event_subscriptions (#4807) 2022-01-29 11:24:28 -01:00
Adam Faulconbridge
3dfda9c1c9
validate containerProperties as strings (#4809) 2022-01-29 11:07:10 -01:00
Bert Blommers
ed86df6bae
ELBv2 improvements (#4808) 2022-01-29 11:04:14 -01:00
Paul
e1dbec1dff
Implement list_hosted_zones_by_vpc() functionality (#4771) 2022-01-29 10:11:24 -01:00
Dave Pretty
8b39233426
dynamodb: filter expression should applied after query/scan. fixes spulec/moto#3909 (#4805) 2022-01-29 10:08:18 -01:00
Dmytro Kazanzhy
f158f0e985
Add RDS methods: start_export_task, cancel_export_task, describe_export_tasks (#4803) 2022-01-28 21:40:30 -01:00
Todd Morse
bbe4402b33
Add host to batch (#4801) 2022-01-27 22:25:18 -01:00
Dmytro Kazanzhy
3ae6841b48
Local: Add RDS methods: copy_db_snapshot, copy_db_cluster_snapshot, create_db_cluster_snapshot, delete_db_cluster_snapshot, describe_db_cluster_snapshots (#4790) 2022-01-27 22:22:51 -01:00
Bert Blommers
3ba3f1460f
Propagate MotoHost via env vars to Lambda (#4658) 2022-01-27 11:04:03 -01:00
Paul
cd2d7a9c7a
moto/route53 does not correctly handle private hosted zones #4785 (#4786) 2022-01-27 10:28:31 -01:00
Bert Blommers
4bd8f4f96f
Glacier - allow zipfiles to be uploaded (#4800) 2022-01-27 09:40:42 -01:00
Bert Blommers
010d525de0
Class decorator - allow possibility of setUp in parent class (#4799) 2022-01-26 23:01:45 -01:00
Roman Rader
fc1ef55adc
Missing VersionID for versioned buckets in API (#4796) 2022-01-26 22:24:51 -01:00
Bert Blommers
76605e30a0
Improved support for Kinesis (#4795) 2022-01-26 18:41:04 -01:00
Bert Blommers
cf50da6938
MQ - Initial implementation (#4789) 2022-01-25 19:01:03 -01:00
Bert Blommers
35d3c72039
S3 - missing features (#4793) 2022-01-25 18:25:39 -01:00
Bert Blommers
38ad5193d4
Cloudfront - add missing fields (#4792) 2022-01-25 18:24:18 -01:00
Jim Cockburn
d5fcc31763
when a timer fires, it should also schedule a decision (#4791) 2022-01-25 15:45:02 -01:00
Felipe Alvarez
5e9c238fcc
test: add missing test for delete_log_stream (#4788) 2022-01-25 12:03:57 -01:00
Felipe Alvarez
9a5d5b5d25
CloudWatchLogs: create_export_task() (#4783) 2022-01-25 12:01:16 -01:00
Bert Blommers
d53dd23390
EC2 - create_snapshots (#4767) 2022-01-25 09:27:02 -01:00
Guriido
44e01a298e
DynamoDb2 transact_write_items: Check multiple transacts on same item (#4787) 2022-01-25 09:26:39 -01:00
Guriido
6d160303a4
Enhancement: Add check for reserved keywords in condition expression attributes [dynamodb2] (#4778) 2022-01-25 09:26:11 -01:00
Daniel Fangl
ebe74d2eb0
disallow organization deletion when accounts are members, allow removal of accounts from organization (#4773) 2022-01-25 09:25:40 -01:00
Daniel Fangl
3f534119f4
Add CreatedDate and LastChangedDate in secretsmanager responses (#4770) 2022-01-25 09:24:26 -01:00
kefi550
54c7fd5e91
feat: SES add minimal address validation (#4769) 2022-01-25 09:23:22 -01:00
Ranjithkumar Krishnan
4c309e7dd7
Fix exception type in cloudwatch get_metric_statistics (#4775) 2022-01-25 09:22:29 -01:00
Bert Blommers
a67412a5a9
Prep release 3.0 (#4776) 2022-01-21 09:42:36 -01:00
Bert Blommers
291aa83137
ECS - LongARN is enabled by default (#4762) 2022-01-18 19:53:31 -01:00
Bert Blommers
6610862a8f
Separate S3Control methods from S3 (#4745) 2022-01-18 19:10:22 -01:00
Bert Blommers
9c8744ff64
Refactor Class-decorator logic to reset per test (#4419) 2022-01-18 16:58:21 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
Sami Jaktholm
ca327e399d
SQS - Improve delete_message_batch() error responses (#4765) 2022-01-15 20:45:43 -01:00
Bert Blommers
f45da41b33
AWSLambda - throw error on large responses (>6MB) (#4763) 2022-01-14 22:23:09 -01:00
Bert Blommers
f3313be991
AppSync - initial implementation (#4761) 2022-01-14 20:12:26 -01:00
Bert Blommers
d118d592ca
Pylint remaining source code (#4760) 2022-01-14 18:51:49 -01:00
Bert Blommers
3f966541ce
Feature: EC2 filter-by dnsname (#4759) 2022-01-14 14:20:23 -01:00
Bert Blommers
63d1c09659
Admin: Fail dependency-check script, instead of failing silently (#4758) 2022-01-13 22:10:20 -01:00
Benoît Faucon
72fdaa3552
feat: add support for filtering by tags in describe_managed_prefix_lists (#4747) 2022-01-13 11:41:01 -01:00
Bert Blommers
a5173904c3
SSO-Admin - Initial implementation (#4743) 2022-01-07 15:28:29 -01:00
Bert Blommers
526559e22c
SNS: publish_batch() (#4741) 2022-01-06 22:09:16 -01:00
Bert Blommers
0eb8ec47ad
ECR - Persist RegistryID when creating a repository (#4742) 2022-01-06 21:05:23 -01:00
Ed
00b10e33a3
Enhancement/cognitoidp add force change password challenge flow (#4740) 2022-01-06 19:34:05 -01:00
Sindri Guðmundsson
4e5180a9ba
Fix publishing to fifo sns->sqs subscription (#4738) 2022-01-06 15:04:55 -01:00
Tim Leslie
ee6b2bfff8
Fix response data-types for kinesis operations (#4736) 2022-01-04 09:47:59 -01:00
Bert Blommers
307104417b
ECS:run_task - persist launchType (#4733) 2021-12-31 15:55:48 -01:00
Ranjithkumar Krishnan
3f79f7f6c7
Fix cloudwatch list metrics localstack #5000 (#4732) 2021-12-31 14:55:48 -01:00
Cristopher Pinzón
b7f0dee4a7
escape windows return character (#4729) 2021-12-30 09:54:15 -01:00
cm-iwata
a9293d62e3
Implement APIGateway update_base_path_mapping (#4730) 2021-12-30 09:52:57 -01:00
Bert Blommers
e020b06016
Batch:list_jobs() - extend list of return fields (#4727) 2021-12-28 13:02:18 -01:00
Bert Blommers
36d5e1d7df
EC2 - DescribeRouteTables should always show main association (#4726) 2021-12-27 22:56:50 -01:00
Burlutskiy Ivan
398c8af0b2
admin_user_global_sign_out works only once (#4717) 2021-12-27 19:18:02 -01:00
Bert Blommers
c0aee36a7b
Feature: DAX (#4722) 2021-12-27 19:15:37 -01:00
Jim Cockburn
8cd8fc8296
Implement "RecordMarker", "StartTimer", "CancelTimer" and "CancelWorkflowExecution" decisions (#4713) 2021-12-27 18:26:51 -01:00
Ingyu Hwang (Evan)
56c3eb6e51
fix(s3/listparts): check parts length (#4724) 2021-12-27 18:23:26 -01:00
Bert Blommers
973c55a36c
EC2 - Error when deleting snapshots in use (#4721) 2021-12-25 20:37:39 -01:00
Bert Blommers
71daf79ffd
EC2 - Verify NIC can be created without SG (#4720) 2021-12-25 15:44:38 -01:00
Bert Blommers
cf87e75d6e
Feature: Mock region (#4699) 2021-12-24 20:02:45 -01:00
Bert Blommers
a1bfb6a48e
EC2 - SubnetId and NetworkInterfaces cannot both be specified when calling run_instances (#4719) 2021-12-24 14:12:57 -01:00
Bert Blommers
c301f8822c
IOT - delete_thing only when no certificates are attached (#4712) 2021-12-22 14:41:34 -01:00
Bert Blommers
43269fc8af
ELBv2 - Support create_listener with ForwardConfig param (#4704) 2021-12-20 16:06:57 -01:00
Bert Blommers
82d18443d3
Feature: ElasticsearchService (#4703) 2021-12-20 11:51:59 -01:00
Simon Toftegaard Petersen
cd0f0ee83c
Added new functionality for EC2 (#4701) 2021-12-19 13:27:23 -01:00
Bert Blommers
82588b2638
Redshift - Pause/Resume clusters (#4693) 2021-12-15 19:00:19 -01:00
Bogdan Girman
de9aa9a8e3
Add pagination for list experiments/trials/components (#4686) 2021-12-15 09:32:19 -01:00
Sanjay Srivatsa
878f150141
Add support for NodeType & NumberOfNodes update during redshift cluster restore from snapshot (#4685)
Fixes #4684
2021-12-14 17:51:53 -08:00
Matt Ossman
cf2461a14e
add ap-southeast-3 zone (#4688) 2021-12-14 09:34:35 -01:00
Bert Blommers
80b074b88f
Update EC2/IAM resources (#4682) 2021-12-12 22:00:30 -01:00
Hugo Delgado
7b06d74576
ELBV2 - Fix elbv2 modify_rule expects Conditions (#4677) (#4681) 2021-12-12 20:10:15 -01:00
Bert Blommers
b8cd79cd06
SNS - Do not pass empty subject (#4679) 2021-12-12 18:07:31 -01:00
Bert Blommers
bc6f6c1618
IOT - Use regular AccountId for Thing ARN (#4678) 2021-12-12 17:07:34 -01:00
Bert Blommers
3d105361ef
Route53 - Error on batch changes that are too large (#4674) 2021-12-10 08:47:27 -01:00
Bert Blommers
7776668a5a
Route53 tech debt (#4673) 2021-12-09 21:33:09 -01:00
Luka
0055e12a9a
Add support for IoT Domain Configuration (#4648) 2021-12-09 12:28:02 -01:00
Bert Blommers
194098c7de
Route53 - Improve error handling (#4672) 2021-12-08 14:42:08 -01:00
interimadd
b4175994e6
S3 - Error when restoring non arhive object (#4670) 2021-12-07 12:00:42 -01:00
Grisha Kostyuk
9ca50c3474
copy ContentType and Metadata from source object (#4666) 2021-12-07 11:14:19 -01:00
Bert Blommers
cd5357ca41
Feature: Guardduty (#4667) 2021-12-07 11:10:43 -01:00
Bert Blommers
0c5a3cc8ca
Feature: Elasticache (#4668) 2021-12-07 11:09:13 -01:00
rolsen
17c0cedbb2
Add support to remove RedrivePolicy from SQS. (#4664) 2021-12-06 21:42:11 -01:00
Bert Blommers
2fde6be849
IAM - add tests for new OIDC functionality (#4663) 2021-12-05 22:52:12 -01:00
Bert Blommers
4e8e91d11a
DynamoDB - Error when providing table with 0 indexes (#4661) 2021-12-05 22:05:30 -01:00
Macwan Nevil
c4338b8aea
added support for openid connect (#4656) 2021-12-05 19:59:31 -01:00
Bert Blommers
cbfe962b70
SQS - Align logic around receipt_handles with AWS (#4655) 2021-12-04 21:51:51 -01:00
Bert Blommers
695a3ca3d3
ECS - create_cluster with tags (#4654) 2021-12-04 21:05:05 -01:00
Macwan Nevil
afc467785d
fixed tf-test (#4653) 2021-12-04 14:54:06 -01:00
Tobias Salzmann
1f82aed4e9
Add lambda capability for resourcegroupstaggingapi (#4651) 2021-12-04 10:17:38 -01:00
Bert Blommers
4befb671f0
Paginator - make development easier + docs (#4650) 2021-12-03 15:33:35 -01:00
Dominik Schubert
1993e3f4ec
ECS - Fix tag/untag for with multiple services in cluster (#4649) 2021-12-03 13:46:24 -01:00
Bert Blommers
c6815c1a4b
Pylint - run on source directories (abc only for now) (#4647) 2021-12-01 22:06:58 -01:00
George Lungley
29406ed74e
Resolves #4644 - Add negative filter support in secretsmanager (#4645) 2021-12-01 14:33:52 -01:00
Bert Blommers
9258316e16
Prep 2.2.17 release (#4642) 2021-11-29 19:35:18 -01:00
Bert Blommers
2cf37a4b90
Feature - CloudFront (#4640) 2021-11-29 13:35:43 -01:00
Bert Blommers
41de9b82ac
Batch - implement attemptDurationSeconds (#4636)
* Batch - implement attemptDurationSeconds

* Batch tests - make job def names unique
2021-11-26 22:25:53 -08:00
Cristopher Pinzón
1ac9b9949d
Correct status code for a versioned key search in not versioned bucket. (#4639) 2021-11-26 20:05:48 -01:00
Kamil Turek
26a732a0e9
Validate message group ID for standard queues (#4635) 2021-11-25 22:32:25 -01:00
Macwan Nevil
ce0d21e9c6
added support for update IAM groups (#4633) 2021-11-25 20:36:33 -01:00
Chris Evett
a2c6e00e22
fix: STS xml was malformed (#4637) 2021-11-25 09:03:57 -01:00
Bert Blommers
6376e15171
Autoscaling - Describe Tags (#4634) 2021-11-24 22:07:44 -01:00
Josh Feierman
7d44df5266
Added restore table to point in time DynamoDB method (#4627) 2021-11-24 20:26:21 -01:00
kbalk
dd0441d36c
Directory Service, Route53Resolver: Delete network interfaces created during initialization (#4629) 2021-11-24 17:22:38 -01:00
Deepesh J
9a8be5ce28
Add support for EMR AutoScalingRole (#4630) 2021-11-24 09:37:30 -08:00
Bert Blommers
a02bdd91ff
DynamoDB - also look at Global indexes to see if the value of a sort key is too big (#4632) 2021-11-24 12:22:35 -01:00
Bert Blommers
71f831dae6
Glue - delete_database() (#4631) 2021-11-24 12:21:45 -01:00
Bert Blommers
5fa932c3cb
CloudFormation - Get/Set stack policy (no parsing) (#4628) 2021-11-24 08:54:38 -01:00
Preston Doster
d64fd52b57
ENI: DescribeNetworkInterfaces attachment.instance-id filter (#3549) 2021-11-23 21:59:35 -01:00
Bert Blommers
4920793498
DynamoDB Query - fix bug in invalid operator detection (#4625) 2021-11-23 18:49:59 -01:00
Bert Blommers
4be96719ba
S3 - Fix corner cases multi upload (#4624) 2021-11-23 18:47:48 -01:00
kbalk
74666c1271
Route53Resolver: Add resolver rule association-related APIs (#4611) 2021-11-23 09:00:50 -01:00
Bert Blommers
e4e58f777d
Feature - Budgets service (#4619) 2021-11-23 08:57:15 -01:00
Philip D'Amore
68ffb303b5
Fix incorrect DnsEntries XML for describe_vpc_endpoints (#4621) 2021-11-23 08:55:47 -01:00
Brian Pandola
8b0a6f3d27
Allow batch job definition tags to be updated (#4620)
Fixes #4618
2021-11-22 16:47:35 -08:00
Bert Blommers
b065a20d88
Rework mock_all to work as a context manager (#4607) 2021-11-22 22:06:59 -01:00
kbalk
f4ec2fc462
Route53Resolver: Add resolver rule-related APIs (#4603) 2021-11-22 16:57:07 -01:00
Bert Blommers
ea67a15dcd
RDS - Implement DeletionProtection for Instances/Clusters (#4614) 2021-11-22 16:07:05 -01:00
Bert Blommers
34a3a03475
API Gateway - improve mocking of public API (#4613) 2021-11-22 16:05:19 -01:00
Dan Aronson
3d6d8c27fd
Implement list jobs (#4610) 2021-11-22 15:46:17 -01:00
Bert Blommers
1102e282fd
SQS - try circumvent test errors (#4609) 2021-11-21 16:05:11 -01:00
Dan Aronson
c7fc9f490d
Glue jobs initial implementation (#4606) 2021-11-21 12:17:52 -01:00
Dominik Schubert
88e1aef254
SQS - Fix message attributes disappearing on multiple receives (#4599) 2021-11-19 22:24:47 -01:00
kbalk
be197caba6
Add support for filters for list_resolver_endpoints (#4598) 2021-11-19 12:57:54 -01:00
FloatingGhost
3f8895a9a3
[s3] Allow KMS SSE parameters in copy_object (#4593) 2021-11-18 19:57:12 -01:00
William Crum
96bdba883b
Adding functionality for cognito:groups in access_token (#4592) 2021-11-18 10:03:35 -01:00
kbalk
5c44a8945d
DirectoryService: Create security group and ENI (#4588) 2021-11-18 09:57:44 -01:00
Bert Blommers
17f2a13573
ELBv2 - Store default action when modifying listener (#4589) 2021-11-17 20:36:20 -01:00
Bert Blommers
a912fc4cac
Feature: Allow custom endpoints for S3 (#4562) 2021-11-17 20:02:14 -01:00
Bert Blommers
8b5e926ec1
SimpleDB - initial implementation (#4585) 2021-11-17 19:09:24 -01:00
kbalk
958a129f97
Route53Resolver: Add resolver endpoint-related APIs (#4559) 2021-11-17 19:06:35 -01:00
Dominik Schubert
f717e494d3
Core - Use json module for error_json exception type rendering instead of jinja2 (#4587) 2021-11-17 15:19:03 -01:00
James Light
f4abd5528f
Fix security group filters 2 (#4481) 2021-11-16 11:24:14 -01:00
Bert Blommers
52aeac1cee
Cloudwatch - Return build-in S3 metrics - take 2 (#3839) 2021-11-15 19:40:11 -01:00
Jordan Sanders
7664cab828
Set version_id to null without bucket versioning (#4574) 2021-11-15 19:25:34 -01:00
Bert Blommers
60d9667da2
S3 - Fix NoSuchKey-format (#4572) 2021-11-14 16:16:58 -01:00
cm-iwata
b71b6904fd
APIGateway - Implement delete_base_path_mapping (#4568) 2021-11-13 10:41:07 -01:00
Bert Blommers
3898124112
DynamoDB - fix bugfix between 0 and x (#4567) 2021-11-12 20:09:03 -01:00
Bert Blommers
16685d3407
CloudwatchLogs - implement validation for old/new messages (#4565) 2021-11-12 16:22:47 -01:00
Dominik Schubert
756f772c5c
EC2 - fix missing AZ on auto-generated volumes for instances (#4560) 2021-11-11 11:50:07 -01:00
Bert Blommers
dfe01dad17
S3 - Remove double quotes on ETag after copy (#4561) 2021-11-11 10:51:09 -01:00
Bert Blommers
74cad730cc
EC2 - improve test coverage (#4558) 2021-11-11 10:50:51 -01:00
Antonio Caparrós
02a7e272e9
Search cognito identities from iot moto backend (#4555) 2021-11-11 09:32:58 -01:00
Bert Blommers
d324532e1a
DynamoDB - error when persisting item with wrong type (#4557) 2021-11-10 20:42:33 -01:00
Mohit Alonja
701465df26
ENI: added ipv6 support and fixed private ip address (#4307) 2021-11-10 19:50:47 -01:00
Bert Blommers
b355e0ada4
CloudFormation - verify shorthand Yaml-functions (#4556) 2021-11-10 12:01:55 -01:00
Bert Blommers
dfb380d887
S3 - PutObject cant specify ACL and Grant (#4550) 2021-11-09 21:49:37 -01:00
Bert Blommers
e54e5cdb95
Feature - @mock_all() (#3756) 2021-11-09 21:29:28 -01:00
Bert Blommers
db0738025a
SSM - Maintenance Windows (#4549) 2021-11-09 21:28:24 -01:00
Bert Blommers
c62a34528e
Work-around for import order (#4103) 2021-11-09 20:39:31 -01:00
Kevin Park
0e6922a4a4
Cloudtrail get_trail_status() also accept ARN in the Name parameter (#4544) (#4547) 2021-11-09 18:50:56 -01:00
Bert Blommers
0bad68f9f0
S3 - create_multipart_upload - support tags (#4548) 2021-11-09 18:49:29 -01:00
Dominik Schubert
78709ce22c
feat(SSM): add support for Label filter in get_parameters_by_path (#4542) 2021-11-08 21:58:11 -01:00
Bert Blommers
d7dd8fb4c5
Kinesis - Fix split_shards behaviour (#4540) 2021-11-07 19:24:54 -01:00
Bert Blommers
b9e38ecc76
CognitoIDP:list_users() - Implement AttributesToGet-parameter (#4539) 2021-11-07 15:02:48 -01:00
Bert Blommers
6e58dc3f12
CloudFormation - allow updates of unknown resources (#4538) 2021-11-07 15:01:39 -01:00
Bert Blommers
028fb8207a
IOT list_execs_for_thing: fix pagination (#4537) 2021-11-07 10:59:59 -01:00
Bert Blommers
eb1d127851
Feature: S3 - enable encryption when copying keys (#4535) 2021-11-06 22:12:01 -01:00
Bert Blommers
3353677c72
Events - match full list against pattern (#4534) 2021-11-06 12:21:40 -01:00
Przemysław Dąbek
aab2a25dfa
Add support for SageMaker Processing job (#4533) 2021-11-06 11:47:42 -01:00
Julio Cesar
1e85e16f0f
Fix missing valid_attrs (issue 4529) (#4530) 2021-11-06 11:37:19 -01:00
cm-iwata
e379ac1cec
Implement APIGateway get_base_path_mapping (#4531) 2021-11-06 09:52:27 -01:00
Vincent Barbaresi
33ad777f71
add back OPTIONS key response after implementing CORS in #4497 (#4528) 2021-11-05 12:19:06 -01:00
Antonio Caparrós
48fbe0db70
Add cognito-identity list identities method (#4525) 2021-11-05 12:17:30 -01:00
kbalk
7b375195bd
DirectoryService: Add support for other directories (#4507) 2021-11-05 12:15:57 -01:00
Bert Blommers
ab531aed9b
Add warnings about deprecated modules (#4527) 2021-11-04 21:39:53 -01:00
Bert Blommers
f923d0d1e0
Feature: Custom cloudformation resources (#4512) 2021-11-03 20:00:42 -01:00
Sam Attridge
ff6d7a13c0
Added policy tagging that was previously marked as missing (#4520) 2021-11-03 19:58:40 -01:00
Bert Blommers
ccd216dfe5
S3 - get_object() should error for Glacier-class (#4523) 2021-11-02 22:02:14 -01:00
Bogdan Girman
7764a94491
Improve sagemaker (#4517) 2021-11-01 21:30:07 -01:00
Brandon Bodnar
6264fb292c
fix: S3 CopyObjects with embedded percent encoding (#4514) 2021-11-01 21:17:06 -01:00
Andor Markus
3b9e6261f9
Feature - emr-containers - jobs (#4515) 2021-11-01 09:36:38 -01:00
Adam Richie-Halford
f4e62f0dfd
ENH: Add resource_requirements to batch job definition (#4506) 2021-11-01 09:31:22 -01:00
Sherman Hui
a1f89ee39f
feat: add describe_receipt_rule_set to ses mock (#4510) 2021-10-31 09:02:37 -01:00
Sherman Hui
940b351387
feat: add update_receipt_rule to ses mock (#4490) 2021-10-31 08:30:50 -01:00
Andor Markus
213c081628
Feature - emr-containers (#4492) 2021-10-30 11:12:08 +00:00
kbalk
e1298e334b
Feature DirectoryService support (#4483) 2021-10-30 10:09:44 +00:00
Vincent Barbaresi
03c170e206
S3: Implement CORS headers in OPTIONS requests (#4497) 2021-10-30 10:02:30 +00:00
Boris Bera
b0c22c6ac1
Ensure that imagePushedAt fields from ECR is timezone aware (#4501) 2021-10-30 10:00:40 +00:00
Łukasz
56866e0ef5
Add add_custom_attributes implementation (#4498) 2021-10-30 09:58:29 +00:00
Vincent Barbaresi
ecdd395bec
Fix range headers: use response_headers parameters instead of creating a new dict (#4502) 2021-10-30 09:49:42 +00:00
Łukasz
07e8ba48ba
cognito-idp standard attributes and pool schema validation (#4493) 2021-10-29 11:25:52 +00:00
cm-iwata
0739537679
Implement APIGateway get_base_path_mappings (#4496) 2021-10-29 09:54:12 +00:00
Maksymilian Babarowski
7a1c38e11a
cognito-idp – Implemented admin_delete_user_attributes (#4487) 2021-10-28 21:21:22 +00:00
Anay Nayak
3b0bc394f8
Glue start stop crawler (#4495) 2021-10-28 21:20:08 +00:00
Bogdan Girman
3259a3307a
Add more functionality to sagemaker (#4491) 2021-10-28 20:21:20 +00:00
Vincent Barbaresi
6f5cae98ad
fix incomplete LastEvaluatedKey when using Global Secondary Index (#4488) 2021-10-28 10:10:11 +00:00
Vincent Barbaresi
b7560c9ad2
Use a different method to compute a timestamp in milliseconds for describe output() (#4476) 2021-10-28 09:28:45 +00:00
Paul Roberts
dc94cca909
Publishing to SNS topics with a null subject should be allowed (#4486) 2021-10-27 18:57:25 +00:00
Łukasz
ec7c2d6d5d
Return OTP from forgot password (#4478) 2021-10-27 18:29:29 +00:00
cm-iwata
2218806f3d
Implement APIGateway create_base_path_mapping (#4475) 2021-10-27 10:48:32 +00:00
Maksymilian Babarowski
98ca9b82e1
cognito-idp – Correct exception when user does not exist (#4482) 2021-10-27 10:43:37 +00:00
Paul Roberts
6c9f959b94
Set the appropriate SNS subject when sending CloudFormation stack events (#4479) 2021-10-27 08:15:51 +00:00
Vincent Barbaresi
7e3db1ecac
Fix #4228: support Fargate batch compute environment (#4477) 2021-10-26 12:27:24 +00:00
Macwan Nevil
5771dcf73b
fixed default kms keys;fixed object locking exception (#4385) 2021-10-26 09:57:58 +00:00
Sherman Hui
1d21cec000
feat: add describe_receipt_rule method to ses mock (#4458) 2021-10-24 19:35:54 +00:00
Łukasz
fee16cb388
Added significant verification to ForgotPassword, changed UserStatus dict to enum (#4469) 2021-10-24 14:26:57 +00:00
Łukasz
a4a8949166
CognitoIDP github.com/spulec/moto/issues/4452 - missing EstimatedNumberOfUsers (#4470) 2021-10-24 13:29:16 +00:00
nom3ad
12bd6af540
fix(cloudformation): missing Parameters key in get_template_summary() response (#4466) 2021-10-23 11:40:41 +00:00
Maksymilian Babarowski
ce91a8d615
cognito-idp – Implemented admin_confirm_sign_up (#4462) (#4463) 2021-10-23 11:32:56 +00:00
Bert Blommers
728039bce1
EC2 - Filtering on plain property didn't work with asterix (#4461) 2021-10-23 11:29:16 +00:00
kbalk
665c8aa3bc
Route53 query-logging-config APIs (#4437) 2021-10-22 21:47:29 +00:00
Bert Blommers
3d6ffcc74d
ECS: delete/list/put_account_setting (#4456) 2021-10-21 22:00:32 +00:00
Bert Blommers
64e16d970a
EMR - Step state should be RUNNING, not STARTING (#4455) 2021-10-21 16:37:57 +00:00
Bert Blommers
0590ad296e
Feature: TimeStream support (#4454) 2021-10-21 15:13:43 +00:00
Bert Blommers
7f0ef4a0cc
ECS - Enable option to use new ARN format (#4450) 2021-10-21 10:05:10 +00:00
Bert Blommers
125936d269
APIGateway - rework tests to work with botocore 1.22 (#4451) 2021-10-20 22:02:20 +00:00
Bert Blommers
fff69b9faa
Autoscaling - add support for TargetTracking/StepAdjustments in scaling policy (#4449) 2021-10-20 17:49:23 +00:00
Bert Blommers
ecd8d2478f
EC2:describe_instances() - allow filter for vpc_id within NIC (#4448) 2021-10-20 16:14:06 +00:00
Ranjithkumar Krishnan
4d4e82a7f7
Fix : SNS get attributes on FIFO topic (#4444) 2021-10-20 12:11:40 +00:00
Leo Thomas
46131e0340
Userpool UsernameAttributes (#4262) 2021-10-20 11:56:45 +00:00
Bert Blommers
766f9ffc0d
SES - setIdentityFeedbackForwardingEnabled & GetIdentityNotificationAttributes (#4445) 2021-10-19 21:10:28 +00:00
Bert Blommers
bf242cd382
Feature: ELBv2: create_target_group with TargetType (#4443) 2021-10-19 21:01:00 +00:00
Bert Blommers
9a55ed717f
KMS - Validate plaintext-parameter for length (#4441) 2021-10-19 16:50:12 +00:00
Bert Blommers
e388a25141
S3 - Return default content type (#4439) 2021-10-19 16:46:23 +00:00
Maksymilian Babarowski
a192a42e8f
cognito-idp – Correct exception message when user pool not found (#4434) (#4436) 2021-10-19 13:05:31 +00:00
Daniel Fangl
0b647fdb8b
Fix random_ipv6_cidr network generation, with test (#4438) 2021-10-19 13:04:30 +00:00
Maksymilian Babarowski
cc5a5c3d72
cognito-idp – Implemented update_user_pool (#4433) (#4435) 2021-10-19 09:18:52 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
24ed6c8d34
Add support for AWS China endpoints (#3661) 2021-10-18 16:13:08 +00:00
nom3ad
f50d80ede6
fix: invalid escape sequence DeprecationWarning (#4430) 2021-10-18 09:21:18 +00:00
nom3ad
0953c11b92
feat(cloudformation): support logs resource policy (#4427) 2021-10-18 09:17:31 +00:00
nom3ad
080e7eba84
cloudformation: fix get_template_summary() related error (#4425) 2021-10-18 09:13:27 +00:00
Maksymilian Babarowski
9d552c39ea
DynamoDB - Exceptions for incorrect AttributeDefinitions in create_table (#4409) (#4428) 2021-10-18 09:11:04 +00:00
Bert Blommers
135edda994
S3 - get/put/delete replication config (#4421) 2021-10-16 17:26:09 +00:00
Bert Blommers
deeabfc6e5
EC2 - Implement DryRun-flag on various operations (#4420) 2021-10-15 22:43:00 +00:00
Shreesha Addala
c62bd5ca41
Enforce tagging restrictions for S3 object (#4417) 2021-10-15 19:10:28 +00:00
Bert Blommers
d72c6b7baa
CognitoIdentity:create_identity_pool: Add validation for name (#4415) 2021-10-14 22:20:56 +00:00
Bert Blommers
1f13d6c406
Feature: ACM: in_use_by (#4414) 2021-10-14 21:43:10 +00:00
Bert Blommers
d916fd636f
S3:list_object_versions() - Implement Delimiter + KeyMarker (#4413) 2021-10-14 18:13:40 +00:00
Łukasz
230e34748f
Added admin_reset_user_password implementation (#4412) 2021-10-14 10:12:08 +00:00
Bert Blommers
df1732c737
S3 - list_objects(MaxKeys=0) (#4411) 2021-10-14 09:49:50 +00:00
Bert Blommers
6f13132a79
Service: CloudTrail (#4410) 2021-10-13 22:22:31 +00:00
Maksymilian Babarowski
e8cd02617d
Fixed a bug where calling batch_get_item with non-existing tables names would not raise ResourceNotFoundException (#4344) (#4403) 2021-10-13 10:36:16 +00:00
Bert Blommers
b95bda11f3
EC2 - Bugfix where associate_public_ip was always True (#4404) 2021-10-13 09:57:39 +00:00
Maksymilian Babarowski
4d10b11ecb
cognito-idp – Do not allow custom attributes in list_users() Filter param (#4389) (#4407) 2021-10-13 09:55:58 +00:00
Maksymilian Babarowski
5cf6f9b2b4
Fixed a bug where calling batch_write_item with non-existing tables names would not raise ResourceNotFoundException (#4402) 2021-10-13 09:52:29 +00:00
Bert Blommers
5f6ca27bb8
CloudWatch - Enable list_metrics() with Dimensions without value (#4400) 2021-10-12 22:04:06 +00:00
Bert Blommers
198f2696b9
Cloudwatch - Do not allow NaN values (#4399) 2021-10-12 19:32:34 +00:00
Bert Blommers
58df83f39f
DynamoDB - Validate the nr of Add-clauses on update (#4398) 2021-10-12 19:32:10 +00:00
Bert Blommers
52df393b5a
S3 - Move ACL tests to dedicated file (#4397) 2021-10-12 17:50:36 +00:00
Maksymilian Babarowski
c60fb068e1
cognito-idp – Added format validation and implemented prefix operator for Filter param of list_users (#4388) 2021-10-11 22:31:40 +00:00
Bert Blommers
476fd895b0
DynamoDB - Validate empty ExpressionAttributeNames on get_item() (#4393) 2021-10-11 22:16:46 +00:00
Bert Blommers
dac33becbf
SNS:Topic: Add option to update/delete via CF (#4392) 2021-10-11 21:56:39 +00:00
Bert Blommers
0d0354438e
ELBv2 - Streamline parsing of Actions-parameter in create_rule (#4390) 2021-10-11 21:12:38 +00:00
Bert Blommers
03083ede42
Kinesis - DescribeStream(): Implement Filter-param (#4391) 2021-10-11 20:33:32 +00:00
Bert Blommers
d9830c0766
Events: Fix pagination for list_rules/list_rule_names_by_target (#3781) 2021-10-11 19:16:34 +00:00
Bert Blommers
51e59c7ac5
CF - Add support for AWS::EC2::VPNGateway (create only) (#4263) 2021-10-10 21:43:49 +00:00
Bert Blommers
4795888fda
RDS - Cluster-methods + restore_db_from_snapshot (#4247) 2021-10-10 19:18:19 +00:00
Bert Blommers
4e45152d86
EC2:create_volume() - Add support for VolumeType (#4264) 2021-10-10 19:16:28 +00:00
Bert Blommers
88c6a2f6db
Update test_batch_jobs.py 2021-10-09 21:31:10 +00:00
Bert Blommers
7f912b7a5b
DynamoDB - Throw exception when updating key using SET operation (#4245) 2021-10-09 21:02:53 +00:00
Bert Blommers
c642e8b4a7
Feature: Kinesis - list_shards() (#3752) 2021-10-09 20:18:13 +00:00
Bert Blommers
df05b608b0
DynamoDB - Support dots in ConditionExpressions (#4383) 2021-10-09 13:09:12 +00:00
Bert Blommers
773e9a9f79
S3 - Allow for keyname that is just an empty space (#4244) 2021-10-09 10:12:26 +00:00
Timothy Klopotoski
acf34a685f
Delete event rule when deleted from cloudformation template (#4382) 2021-10-09 10:11:46 +00:00
Bert Blommers
6ff03f3974
DynamoDB - Raise exceptions when query is missing GSI keys (#4379) 2021-10-08 10:06:55 +00:00
Maksymilian Babarowski
6fdb62a0a5
dynamodb2 - updated error message when UpdateItem with ConditionalExpression fails (#4375) 2021-10-08 07:45:10 +00:00
Shreesha Addala
7d660b236f
Add support for ELBSecurityPolicy-FS-1-2-Res-2020-10 (#4377) 2021-10-07 18:18:02 +00:00
Macwan Nevil
a17d17ec6e
fixed object locking mechanism in s3 (#4367) 2021-10-06 20:05:26 +00:00
rajinder
71b4b47523
4365 cannot create listener (#4373) 2021-10-06 09:24:59 +00:00
Bert Blommers
d8f3d3f3e1
Kinesis - duplicate deprecated tests (#4371) 2021-10-05 20:41:02 +00:00
Bert Blommers
b49ee71a55
Parallel tests - make EC2 SG tests more resistant to parallel tests (#4372) 2021-10-05 20:40:21 +00:00
Bert Blommers
8526013e61
Parallelize tests - Part 1 (#4368) 2021-10-05 17:11:07 +00:00
Bert Blommers
e9a4100324
Rewrite deprecated CloudFormation tests (#3842) 2021-10-04 13:47:40 +00:00
kbalk
e6b18bcb92
Verify at least one dest config is specified (#4363) 2021-09-30 19:57:03 +00:00
James Light
73b7fcce26
Fix security group filters (#4079) 2021-09-30 15:28:13 +00:00
Jim King
33e60a2d16
[issue-4360] Fix InvalidResource Id,Type responses for ssm tagging methods (#4361) 2021-09-30 11:47:11 +00:00
Jim King
f50cf51de7
[issue-4283] ssm put_parameter with tags and overwrite should error (#4362) 2021-09-30 10:58:04 +00:00
teddylear
8c2d0b0557
feat: Adding validation to Cloudformation to reject same template_body (#4351) 2021-09-28 20:35:46 +00:00
Jonathan Piché
2db85d0e54
#4298 // fix warning when image id from template if specified (#4356) 2021-09-27 20:00:29 +00:00
MarkBrook
663cd7a523
ISSUE-4340: SecretsManager cannot find specified secret using ARN in some operations (#4353) 2021-09-27 19:59:13 +00:00
oakbramble
30c8c3de1f
Deregister batch job definition by 'name:revision' (#4355) 2021-09-27 17:19:44 +00:00
Bert Blommers
c3503081bc
S3: HeadBucket requests should be authenticated (#4346) 2021-09-25 17:25:27 +00:00
Bert Blommers
939b800e96
Rewrite deprecated EC2 tests (#3881) 2021-09-25 11:13:07 +00:00
kbalk
8e93bfc60b
Fix validation of InputParameters (#4343) 2021-09-24 21:50:39 +00:00
Bert Blommers
8ab76cb1d5
Rewrite deprecated ELB tests (#4342) 2021-09-24 20:00:10 +00:00
kbalk
3a203d35c9
Implement EC2 describe_vpc_endpoint_services() (#4322) 2021-09-24 16:01:09 +00:00
Fabian Iffländer
a02bf0022d
Fix list_job_excecutions_for_thing with status parameter (#4334) 2021-09-24 13:41:08 +00:00
Bert Blommers
579b6e264f
SES - SendEmail: source attr can contain chevrons (#4338) 2021-09-23 18:56:22 +00:00
Bert Blommers
d87a2eab49
SQS - Allow XML content to be received as a message attr (#4337) 2021-09-23 18:55:22 +00:00
Bert Blommers
8c36da14c0
Glacier - rewrite deprecated tests (#4336) 2021-09-23 17:22:16 +00:00
Bert Blommers
953be7682b
Rewrite deprecated Redshift tests (#4331) 2021-09-23 13:29:11 +00:00
Bert Blommers
682c7350b6
DataPipeline - duplicate deprecated tests (#4333) 2021-09-23 13:28:27 +00:00
Bert Blommers
8f8ea45d32
EMR - mark tests as duplicated (#4332) 2021-09-23 13:27:55 +00:00
Bert Blommers
f5107b9252
STS - duplicate boto tests (#4329) 2021-09-23 12:09:24 +00:00
Bert Blommers
80379312a3
SES - duplicate boto tests (#4330) 2021-09-23 11:51:34 +00:00
Bert Blommers
d1e105f2f2
SNS - duplicate deprecated tests (#4328) 2021-09-23 11:50:59 +00:00
Bert Blommers
e88e73aac7
Rewrite deprecated Route53 tests (#4327) 2021-09-23 10:27:09 +00:00
Bert Blommers
4c18b36170
SQS - duplicate deprecated tests (#4326) 2021-09-22 21:50:27 +00:00
Bert Blommers
8fd904634f
DynamoDB - Rewrite boto tests (#3927) 2021-09-22 21:22:56 +00:00
Macwan Nevil
3e20703106
fixed route table associations (#4325) 2021-09-22 20:56:56 +00:00
Bert Blommers
65dd0f1660
KMS - duplicate boto tests (#3916) 2021-09-22 20:37:03 +00:00
Bert Blommers
95a1301ead
IAM - duplicate boto tests (#3913) 2021-09-22 19:42:42 +00:00
Bert Blommers
9d1dd79813
Rewrite deprecated DynamoDB2 tests (#3904) 2021-09-22 18:13:28 +00:00
Bert Blommers
f17b4a3904
Rewrite deprecated Autoscaling tests (#3907) 2021-09-22 18:05:28 +00:00
stromp
097a260dce
Fixes issue #4312 (#4323) 2021-09-22 16:35:50 +00:00
rajinder
f7d490167b
implemented validators endpoints (#4309) 2021-09-22 16:34:20 +00:00
Steven Davidovitz
d56a3989eb
EC2 - instance lifecycle defaults to None when not using spot (#4321) 2021-09-22 16:32:30 +00:00
Bert Blommers
5b10671af4
Rewrite deprecated SWF tests (#3891) 2021-09-21 22:00:20 +00:00
Bert Blommers
f7ce1c73fe
CloudWatch - duplicate deprecated tests (#3853) 2021-09-21 20:58:46 +00:00
Bert Blommers
6dfb539a97
Rewrite deprecated S3 tests (#3889) 2021-09-21 20:06:42 +00:00
Miguel Gagliardo
c65d4ddc3b
Fix: Adding ClientRequestToken for SecretsManager update_secret method (#4314) 2021-09-21 16:43:31 +00:00
oakbramble
82158096d6
Add tagging to batch job definitions (#4316) 2021-09-21 16:12:18 +00:00
Bert Blommers
b95d8aaebc
APIGateway - delete_method() (#4320) 2021-09-21 15:20:46 +00:00
Bert Blommers
d08ed937f3
AWSLambda - clean up tests (#4317) 2021-09-21 15:19:49 +00:00
Macwan Nevil
0dfae06126
cleaned up test csaes (#4315) 2021-09-20 19:48:45 +00:00
Bert Blommers
18e4595b51
Add dataclasses dependency Py3.6 (#4306) 2021-09-19 22:04:38 +00:00
Bert Blommers
c0853aa99d
KMS - CreateKey without desc should return empty desc (#4305) 2021-09-18 21:12:18 +00:00
rajinder
3d7d5eb7ed
added update rest api (#4303)
Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-09-18 20:17:42 +00:00
Paul Roberts
65c29e1f5e
Fix CloudFormation create_stack returning stack_id with wrong region (#4302) 2021-09-17 22:45:11 +00:00
Paul Roberts
f9654f62da
Implement ACM export_certificate function (#4300)
Co-authored-by: Paul Roberts <paroberts@guidewire.com>
2021-09-17 09:44:40 +00:00
Macwan Nevil
cb43134d44
fixed route-table vpc-endpoint integration (#4285) 2021-09-16 21:49:49 +00:00
Mohit Alonja
f84ba7d6ec
Fix NetworkInterface PrivateIP support and EIP association (#4288) 2021-09-16 21:07:18 +00:00
Paul Roberts
45b2684eb6
Publish messages to SNS when CloudFormation NotifcationARNs is set (#4295)
Co-authored-by: Paul Roberts <paroberts@guidewire.com>
2021-09-16 09:26:50 +00:00
Bert Blommers
a147eeac67
EC2 - Additional unit tests (#4291) 2021-09-15 21:07:04 +00:00
Paul Roberts
da6c5f667b
Fix error when AWS::ECS::Service does not include a DesiredCount (#4292)
Co-authored-by: Paul Roberts <paroberts@guidewire.com>
2021-09-15 21:05:53 +00:00
kbalk
69c2a11f5c
Allow CloudWatch logs to be sent to Firehose (#4286)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-09-15 08:40:27 +00:00
Mohit Alonja
002f9979ef
Fix Nat Gateway (#4281) 2021-09-14 20:40:17 +00:00
kbalk
b89b0039e4
Add some basic Firehose service APIs (#4246) 2021-09-14 09:39:39 +00:00
Matt Ossman
9859d66ff8
add metric filter support to cloudwatch logs (updated) (#4278)
Co-authored-by: Brady <brady.jubic@gsa.gov>
2021-09-13 23:31:03 +01:00
Macwan Nevil
d48cd31ebb
support for carrier gateway in rt (#4282) 2021-09-12 07:45:38 +00:00
Macwan Nevil
39314906bc
added support for carrier gateway (#4280) 2021-09-11 20:30:15 +00:00
Mohit Alonja
99c661781e
Fix VPN gateway (#4279) 2021-09-11 08:21:01 +01:00
Mohit Alonja
e061d371c9
Basic requirements VPN GW (#4276) 2021-09-10 18:21:29 +01:00
Macwan Nevil
d5ffce650f
fixed vpc cidr association integrations with route-tables (#4277) 2021-09-10 14:19:39 +01:00
Macwan Nevil
3885e20298
added support for prefix-list; improved support for replace route (#4273) 2021-09-10 07:09:47 +01:00
Mohit Alonja
eef21767f8
Fix SecuirtyGroupRules and added default Ec2-VPC support for SG. (#4267) 2021-09-09 13:39:48 +01:00
Gonzalo Saad
e6c6ce5942
refactor(ssm): Refactor document permisisons and conditions (#4243) 2021-09-08 06:56:20 +01:00
Mohit Alonja
b3795d312a
added owner_id for igw (#4271) 2021-09-07 17:21:05 +01:00
Bert Blommers
4e7153c655
EC2 - DryRun-requests should return 412 status code (#4270) 2021-09-07 17:10:01 +01:00
arrrrrmin
266a217328
A small bit of Transcribe support (#4269) 2021-09-07 14:18:04 +01:00
Mohit Alonja
7240e8f965
API Gateway Stage tags support (#4160) 2021-09-04 19:05:39 +01:00
Mohit Alonja
2f26e870b8
SecurityGroup Improvements (#4239) 2021-09-04 17:08:18 +01:00
mello7tre
69cc92f780
Add describe_spot_price_history (#4261) 2021-09-04 16:57:01 +01:00
mello7tre
6d9abe1111
Add instance lifecycle property to detect spot instances (#4260) 2021-09-02 14:12:17 +01:00
mello7tre
edca235623
Added AutoScalingGroup LifeCycleHook support (fake) (#4259) 2021-09-02 14:10:11 +01:00
nivla1
5044df98bc
Implement sagemaker list_training_jobs enhancement (issue #4248) (#4256)
Co-authored-by: nivla1 <keongalvin@gmail.com>
2021-09-02 13:45:47 +01:00
mello7tre
cfc793014f
Fix/asg attach instances (#4258) 2021-09-01 18:50:53 +01:00
Bert Blommers
c53183db70
S3 - Correct error when creating a bucket that already exists (#4257) 2021-09-01 16:30:01 +01:00
Bert Blommers
0659ac6192
EC2 - Verify we can filter by owner-alias (#4255) 2021-09-01 13:23:24 +01:00
kbalk
17e9a37c81
Add validation of tags to TaggingService (#4253)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-09-01 07:07:01 +01:00
Macwan Nevil
c707ee002c
added subnet ipv6 cidr association; minor fixes (#4242) 2021-08-30 19:16:40 +01:00
Bert Blommers
cc568c1656
DynamoDB - Improve handling of ReturnConsumedCapacity-param (#4241) 2021-08-29 19:04:42 +01:00
Julian
58da62cc71
enhancement(SSM): Add DataType attribute to SSM Parameters (#4232) 2021-08-29 17:28:51 +01:00
Bert Blommers
dc49232734
S3 - HeadObject should authenticate requests (#4240) 2021-08-29 14:49:05 +01:00
Bert Blommers
728c0c91b4
AWSLambda:list_functions() should only return the latest version by default (#4047) 2021-08-28 15:26:44 +01:00
Bert Blommers
07bb843214
Fix regex URLs so that a dot is actually interpreted as a dot (#4110) 2021-08-28 13:42:45 +01:00
Bert Blommers
8f79edba38
Request matching - return known requests first (#3793) 2021-08-28 13:34:32 +01:00
Bert Blommers
1a42b33781
IAM - Delete Role/InstanceProfile via CloudFormation (#3591) 2021-08-28 11:00:05 +01:00
Bert Blommers
027d05e21c
Improve logs when Docker is not running (#3711) 2021-08-28 10:48:28 +01:00
Bert Blommers
31e10e96d7
Remove Docker-dependency from SQS (#3738) 2021-08-28 10:03:17 +01:00
Bert Blommers
0e302a97cb
Streamline success/failure response from AWSLambda (#4000) 2021-08-28 09:41:05 +01:00
Bert Blommers
4653c34fd5
Validate AST before creating new item (#3754) 2021-08-28 09:38:12 +01:00
Bert Blommers
34c00e7dbd
#3548 - Logs - Transform assertions into proper exceptions (#3744) 2021-08-28 09:36:43 +01:00
Bert Blommers
ec70d3cd14
SQS - get_queue_attributes() might not have AttributeNames-parameter (#4236) 2021-08-28 09:34:33 +01:00
Bert Blommers
532386327d
S3 - Add RequestId to responses (#3836) 2021-08-28 08:32:14 +01:00
Bert Blommers
6a6a71ebff
DynamoDB - raise exception for invalid parameter combination (#3755) 2021-08-28 07:41:04 +01:00
Bert Blommers
0317c502f0
S3 ListParts API: use MaxParts parameter (#3658) 2021-08-28 07:38:16 +01:00
Bert Blommers
6b960e0d4f
CF support for IAM:ManagedPolicy (#3933) 2021-08-28 07:32:10 +01:00
Bert Blommers
6d0bcba791
Feature: Elastic Transcoder (#3810) 2021-08-28 07:30:40 +01:00
Bert Blommers
a6606cbf42
DynamoDB - Describe Endpoints (#3716) 2021-08-28 07:25:06 +01:00
Bert Blommers
cc50acc8b5
AWSLambda - Allow ARN as parameter (#3740) 2021-08-28 07:23:44 +01:00
Brian Pandola
a1e415ec03
Support alternate EC2:ModifyInstanceAttribute request syntax (#4234) 2021-08-28 07:04:15 +01:00
Bert Blommers
6f4b6080f8
SQS - Raise error message when providing an invalid value for the queue_url parameter (#3657) 2021-08-28 06:19:01 +01:00
Bert Blommers
684cafa2b8
S3 - Allow uploads using a PUT request without content-type (#3699) 2021-08-28 06:10:16 +01:00
Bert Blommers
8b7df4da44
EC2:DescribeVpcPeeringConnection() - use VpcPeeringConnectionIds-parameter if provided (#4230) 2021-08-27 14:56:31 +01:00
Bert Blommers
020257904e
Tech Debt - improve test coverage (#4229) 2021-08-27 11:28:10 +01:00
Mohit Alonja
11a37c357b
SecurityGroup Improvements (#4183) 2021-08-26 19:57:07 +01:00
Bert Blommers
6a644850f6
EC2 - Return custom error response for DescribeRouteTable/DescribeVPC (#4225) 2021-08-26 18:53:26 +01:00
Anton Grübel
e865362791
Add fifo high throughput (#4224) 2021-08-26 16:23:17 +01:00
Mark Woods
21021a6a03
Glue - Implemented create_crawler, get_crawler, get_crawlers, delete_crawler. Updated IMPLEMENTATION_COVERAGE.md. (#4222) 2021-08-26 10:49:41 +01:00
Timothy Klopotoski
cbbeaff23e
Throw ValidationError on null outputs section (#4221) 2021-08-26 06:01:01 +01:00
Macwan Nevil
9613795bc2
fixed vpc with ipv6 connection (#4219) 2021-08-26 05:59:34 +01:00
Gonzalo Saad
29b0122fac
feat(ssm): Add ssm documents permissions (#4217)
* refactor(ssm): Add Documents class to avoid dictionary handling
This also solves the datetime format issue in TestAccAWSCloudWatchEventTarget_ssmDocument
2021-08-25 15:16:14 +01:00
Macwan Nevil
105bf863af
added support for modify-vpc-connection; fixed vpc peering options (#4210) 2021-08-24 16:52:34 +01:00
Bert Blommers
d278fd6eaa
Batch - remove duplicate tests (#4208) 2021-08-22 15:14:46 +01:00
Bert Blommers
914d07027f
Feature: Batch: cancel_job (#3769) 2021-08-22 12:29:23 +01:00
Bert Blommers
fdf27a70e9
Route53 - Persist CallerReference (#3788) 2021-08-22 10:51:21 +01:00
Bert Blommers
5f7167ce62
Organisations - Detach policy, and asserts it actually happens (#3759) 2021-08-22 10:49:48 +01:00
Bert Blommers
bb3cbd0bb4
DynamoDB (V1) - implement UpdateItem (#3926)
* DynamoDB (V1) - UpdateItem implementation

* DynamoDB (V1) - negative tests for UpdateItem
2021-08-22 10:42:41 +01:00
Bert Blommers
fbd93efdb7
EC2 - Add tests for egress_only_internet_gateway (#4206) 2021-08-22 10:35:04 +01:00
Bert Blommers
7acdfe4feb
Introduce Pylint to check for duplicate test method names (#3684) 2021-08-21 16:33:15 +01:00
Bert Blommers
8d4596a366
Prep Release 2.2.4 (#4205)
* S3 - Refactor logic to models.py, out of Response-class

* Changelog for release 2.2.4
2021-08-21 15:05:40 +01:00
Evan O'Connell
25e79c6e67
Fix IsDefault bug in elbv2 describe_rules (#4204) 2021-08-21 05:50:10 +01:00
kbalk
b9c7ec383c
Add AWS ConfigService put_config_rule, delete_config_rule, describe_config_rule (#4171)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-08-21 05:45:52 +01:00
Timothy Klopotoski
bd5ab53241
Fix bugs. Cloudformation updates are complex! (#4200)
* **Fix bug.** If a cloudformation stack is updated with a new
    parameter, that parameter should be honored. Several unit tests
    had bugs where they were not providing parameters required by the template.
* **Fix bug.** Do not update stack parameters until after deleting removed
    resources, so that any references to removed parameters can be resolved.
* **Fix bug.** Per the API, creation of a change set should not modify
    a stack. The `diff` method, called in the creation of a
    FakeChangeSet, was mutating the resource map which was problematic
2021-08-19 17:36:11 +01:00
Łukasz
73368863eb
Added handling for V4 signatures in PutObject body (#4201)
Co-authored-by: Łukasz Nowak <lukasz.nowak@idemia.com>
2021-08-19 15:06:43 +01:00
Brian Pandola
1db3e0e9b9
Raise error when attempting to terminate protected ec2 instance (#4199) 2021-08-19 06:47:05 +01:00
D. Ferruzzi
d67d8111a3
Fargate (#4185) 2021-08-19 06:44:56 +01:00
Macwan Nevil
a93756c69a
added support for egress-only-internet-gateway (#4196) 2021-08-19 06:39:06 +01:00
Timothy Klopotoski
b4f02f3436
Translate Cloudformation API data to EventBridge API data (#4188) 2021-08-18 20:31:29 +01:00
Hasanul Islam
492484be20
Add missing default regiono in s3 client (#4194) 2021-08-18 20:25:33 +01:00
Timothy Klopotoski
8743f81e15
CF: Raise ValidationError on bad resource id (#4186) 2021-08-18 18:41:02 +01:00
Ariel Beck
ce449bf86b
Iot/added deprecation errors (#4192)
Co-authored-by: arielb <ariel.beck@cyberark.com>
2021-08-18 10:32:58 +01:00
Brian Pandola
27c9b31d3a
Fix ec2 wildcard tag filters (#4189) 2021-08-18 06:02:19 +01:00
Ariel Beck
2f5a702f1f
added deprecate_thing_type method for IOT (#4184)
Co-authored-by: arielb <ariel.beck@cyberark.com>
2021-08-17 18:05:18 +01:00
Cristopher Pinzón
1d90946072
Feature S3 Object Lock (#4174) 2021-08-17 06:16:59 +01:00
Bert Blommers
547a1844ed
Tech debt - improve test coverage EC2/ELBv2/Events (#4181) 2021-08-16 15:13:50 +01:00
Anton Grübel
4df099c724
Add cloudwatch tags (#4179)
* Update cloudwatch.put_metric_alarm to accept TreatMissingData and Tags parameter
* Add parameter ExtendedStatistic and EvaluateLowSampleCountPercentile to cloudwatch.put_metric_alarm
* Add parameter ThresholdMetricId to cloudwatch.put_metric_alarm
2021-08-16 08:52:19 +01:00
Macwan Nevil
1800733162
added tgw support in rt (#4178) 2021-08-15 17:21:10 +01:00
Macwan Nevil
7397b8c129
fixed rt, eip, natgateway integration (#4176) 2021-08-15 10:11:04 +01:00
Macwan Nevil
d2c9e85ed3
Enhanced support for ami filtering (#4175) 2021-08-15 10:09:50 +01:00
Mohit Alonja
39185cafef
Added ManagedPrefixList (#4169) 2021-08-14 16:31:06 +01:00
Anton Grübel
0d06ebb5fc
Add ecr replication config (#4170) 2021-08-14 16:15:56 +01:00
Koichi Ogura
ec33237165
iot: Add VersionsLimitExceededException (#4173) 2021-08-14 16:10:58 +01:00
Gonzalo Saad
9e61ab2220
refactor(events): Improve put_rule and event pattern (#4158) 2021-08-13 06:01:44 +01:00
Bartosz Sledz
b3fe48ece0
Add support for USER_PASSWORD_AUTH auth method (cognito-idp) (#4164)
Co-authored-by: Bartosz Sledz <bartosz.sledz@hitachivantara.com>
2021-08-12 09:19:54 +01:00
Anton Grübel
cbfb450430
Support force flag in ecr.delete_repository (#4167) 2021-08-12 06:08:28 +01:00
Anton Grübel
b8405b39b5
Add ecr image scan (#4166)
* Add ecr.start_image_scan

* Add ecr.describe_image_scan_findings
2021-08-12 06:06:21 +01:00
Anton Grübel
a5eb46962d
Fix events target for custom event bus (#4168) 2021-08-12 06:02:16 +01:00
Macwan Nevil
f2b8318211
fixed owner id and delete rt (#4161) 2021-08-11 21:23:04 +01:00
Bert Blommers
574053cb27
EC2 - Improve/Extend RouteTable unit tests (#4165) 2021-08-11 18:50:15 +01:00
Anton Grübel
6f361e6afb
Add ecr registry policy (#4159)
* Add ecr.put_registry_policy

* Add ecr.get_registry_policy

* Add ecr.delete_registry_policy

* Add ecr registry policy test for Terraform and cleanup
2021-08-11 13:18:12 +01:00
Macwan Nevil
5e6b7ee529
removed depricated account id (#4156) 2021-08-10 07:13:39 +01:00
Anton Grübel
298e220122
Add ecr lifecycle policy (#4153)
* Add ecr.put_lifecycle_policy

* Add ecr.get_lifecycle_policy

* Add ecr.delete_lifecycle_policy

* Add ecr lifecycle policy test for Terraform
2021-08-09 14:55:29 +01:00
Garreth Golding
6ae37046f0
UnboundLocalError is thrown when creating a Firehose delivery stream. (#4144) 2021-08-07 09:42:23 +01:00
Bert Blommers
6fedb25a2a
Merge pull request #4149 from xiaket/execute_change_set_update_stack_status
add stack status in execute_change_set call.
2021-08-07 09:39:29 +01:00
kbalk
6b880003c6
Add Log Service describe_resource_policies, delete_resource_policy (#4150)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-08-07 09:04:15 +01:00
Anton Grübel
b4ae6a9cce
Add ecr repo policy (#4148)
* Add ecr.set_repository_policy

* Add ecr.get_repository_policy

* Add ecr.delete_repository_policy
2021-08-07 08:48:28 +01:00
Waldemar Hummer
35d0ddef24
Add support for KMS update-alias (#4143) 2021-08-07 08:07:40 +01:00
Kai Xia
9af1a96174 make FakeChangeSet a subclass of BaseModel, not FakeStack.
This fixes #4141, and pave ways for future changes around changeset.

We had subclassed FakeChangeSet from FakeStack, not from BaseModel. This made
us easier to send the response for describe_change_set calls, but when we are
handling the details of change set, the old approach won't work at all.
For example, when we were creating a changeset, we were actually creating a
stack without registering it (self.stacks), and future update onto this stack
is not really possible.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
2021-08-07 17:02:22 +10:00
Bert Blommers
76094f012b
Remove pkg_resources module (#4142) 2021-08-05 17:59:25 +01:00
Gonzalo Saad
da09cfc39c
feat(events): Add condition in event permission (#4140) 2021-08-05 14:24:51 +01:00
Anton Grübel
cadbee35cb
Add ecr tag mutability & image scan config (#4139)
* Add ecr.put_image_tag_mutability

* Add ecr.put_image_scanning_configuration
2021-08-05 14:23:11 +01:00
Bert Blommers
79f0cc9e9e
Tech debt - remove dead DynamoDB code and add RDS tests (#4136) 2021-08-04 17:24:26 +01:00
Bert Blommers
69e865dd1e
EC2 - Add unit tests for Route Tables (#4135) 2021-08-04 14:22:26 +01:00
Bert Blommers
ee6f20e376
Batch - Test rework (#4134) 2021-08-04 13:40:10 +01:00
Ray Myers
4ae9b0e253
Implement AutoScaling resume_processes and correct behavior of suspend_processes (#4133)
* Implement AutoScaling resume_processes and correct behavior of suspend_processes
2021-08-04 06:57:21 +01:00
Jordan Bailey
1b7e015e19
Wafv2 initial Implementation 2021-08-04 06:45:41 +01:00
Bert Blommers
bc369679f2
Update test_cognitoidp.py 2021-08-03 16:54:31 +01:00
Łukasz
33988b96c2
fix for 'status' filter, inherent_attributes test (#4129)
Co-authored-by: Łukasz Nowak <lukasz.nowak@idemia.com>
2021-08-03 16:34:07 +01:00
Anton Grübel
788b8e617d
Update ecr (#4128)
* Add ecr.list_tags_for_resource

* Add ecr.tag_resource

* Add ecr.untag_resource

* Add default KMS key policy, if not specified
2021-08-03 16:21:15 +01:00
George Lungley
0ec99fae8b
#4118 Add KmsKeyId Support to secretsmanager (#4119) 2021-08-03 15:46:23 +01:00
Gonzalo Saad
242de5bc6f
feat(events): Add policy in put_permission (#4114)
* feat(events): Add policy in put_permission
Also add RemoveAllPermissions in remove_permission
2021-08-03 15:10:36 +01:00
Bert Blommers
0388b778dd
EC2/RDS2 - New tests (#4127) 2021-08-03 15:06:06 +01:00
kbalk
f364a050f0
Add support for ConfigService APIs list_tags_for_resource, untag_resource, tag_resource (#4117)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-08-03 12:45:26 +01:00
Ray Myers
9bd38f8480
Add autoscaling delete_tags (#4122) 2021-08-03 08:00:26 +01:00
Mohit Alonja
911d29cc33
Added support for tgw peering attachment (#4115)
* Added required params to run the terraform test
2021-08-03 07:58:25 +01:00
Łukasz
16a4db1ce5
cognito:user_status filter in list users (#4120)
Co-authored-by: Łukasz Nowak <lukasz.nowak@idemia.com>
2021-08-03 07:56:41 +01:00
Macwan Nevil
c8b2b6dffe
fixed vpc with terraform; added modify vpc tenancy (#4116) 2021-08-02 05:50:45 +01:00
Waldemar Hummer
6eeb4b4b32
Add support for EC2 transit gateway associations (#4089)
Co-authored-by: Nevil Macwan <macnev2013@gmail.com>
Co-authored-by: monty16597 <alonjamohit77@gmail.com>
2021-07-31 16:18:19 +01:00
Waldemar Hummer
faadf3db3a
fix parsing regex to support request params with dicts of lists (#4111) 2021-07-30 06:19:38 +01:00
Bert Blommers
11883a1fda
Remove unnecessary dependencies EC2/SQS (#4094)
* Add missing dependencies for EFS
2021-07-29 06:38:16 +01:00
Patrick Greene
6b4032a9a8
Add partial support for EFS (#4080) 2021-07-29 05:55:23 +01:00
Bert Blommers
a1905ad584
Improve test coverage (#4098) 2021-07-28 11:17:15 +01:00
andyfase
0f8da52196
Add support for admin_user_global_sign_out to cognitoidp (#4092)
* Add support for admin_user_global_sign_out to cognitoidp
2021-07-27 18:49:19 +01:00
Gonzalo Saad
f849842414
feat(events): Add update_connection (#4095) 2021-07-27 17:47:03 +01:00
cătălin
9d7746b9e3
Add validity dates to IoT fakecert (#4093) 2021-07-27 08:59:01 +01:00
Miguel Gagliardo
f9f93531e8
Fix: Adding empty tags to SQS queue on creation time (#4087)
* Fix: Adding tags to SQS queue on creation time
2021-07-27 08:24:38 +01:00
Miguel Gagliardo
44624593f1
Fix: Adding fix when setting empty policy attr to queue (#4091) 2021-07-27 06:04:24 +01:00
Waldemar Hummer
f4f8527955
Merge LocalStack changes into upstream moto (#4082)
* fix OPTIONS requests on non-existing API GW integrations

* add cloudformation models for API Gateway deployments

* bump version

* add backdoor to return CloudWatch metrics

* Updating implementation coverage

* Updating implementation coverage

* add cloudformation models for API Gateway deployments

* Updating implementation coverage

* Updating implementation coverage

* Implemented get-caller-identity returning real data depending on the access key used.

* bump version

* minor fixes

* fix Number data_type for SQS message attribute

* fix handling of encoding errors

* bump version

* make CF stack queryable before starting to initialize its resources

* bump version

* fix integration_method for API GW method integrations

* fix undefined status in CF FakeStack

* Fix apigateway issues with terraform v0.12.21
* resource_methods -> add handle for "DELETE" method
* integrations -> fix issue that "httpMethod" wasn't included in body request (this value was set as the value from refer method resource)

* bump version

* Fix setting http method for API gateway integrations (#6)

* bump version

* remove duplicate methods

* add storage class to S3 Key when completing multipart upload (#7)

* fix SQS performance issues; bump version

* add pagination to SecretsManager list-secrets (#9)

* fix default parameter groups in RDS

* fix adding S3 metadata headers with names containing dots (#13)

* Updating implementation coverage

* Updating implementation coverage

* add cloudformation models for API Gateway deployments

* Updating implementation coverage

* Updating implementation coverage

* Implemented get-caller-identity returning real data depending on the access key used.

* make CF stack queryable before starting to initialize its resources

* bump version

* remove duplicate methods

* fix adding S3 metadata headers with names containing dots (#13)

* Update amis.json to support EKS AMI mocks (#15)

* fix PascalCase for boolean value in ListMultipartUploads response (#17); fix _get_multi_param to parse nested list/dict query params

* determine non-zero container exit code in Batch API

* support filtering by dimensions in CW get_metric_statistics

* fix storing attributes for ELBv2 Route entities; API GW refactorings for TF tests

* add missing fields for API GW resources

* fix error messages for Route53 (TF-compat)

* various fixes for IAM resources (tf-compat)

* minor fixes for API GW models (tf-compat)

* minor fixes for API GW responses (tf-compat)

* add s3 exception for bucket notification filter rule validation

* change the way RESTErrors generate the response body and content-type header

* fix lint errors and disable "black" syntax enforcement

* remove return type hint in RESTError.get_body

* add RESTError XML template for IAM exceptions

* add support for API GW minimumCompressionSize

* fix casing getting PrivateDnsEnabled API GW attribute

* minor fixes for error responses

* fix escaping special chars for IAM role descriptions (tf-compat)

* minor fixes and tagging support for API GW and ELB v2 (tf-compat)

* Merge branch 'master' into localstack

* add "AlarmRule" attribute to enable support for composite CloudWatch metrics

* fix recursive parsing of complex/nested query params

* bump version

* add API to delete S3 website configurations (#18)

* use dict copy to allow parallelism and avoid concurrent modification exceptions in S3

* fix precondition check for etags in S3 (#19)

* minor fix for user filtering in Cognito

* fix API Gateway error response; avoid returning empty response templates (tf-compat)

* support tags and tracingEnabled attribute for API GW stages

* fix boolean value in S3 encryption response (#20)

* fix connection arn structure

* fix api destination arn structure

* black format

* release 2.0.3.37

* fix s3 exception tests

see botocore/parsers.py:1002 where RequestId is removed from parsed

* remove python 2 from build action

* add test failure annotations in build action

* fix events test arn comparisons

* fix s3 encryption response test

* return default value "0" if EC2 availableIpAddressCount is empty

* fix extracting SecurityGroupIds for EC2 VPC endpoints

* support deleting/updating API Gateway DomainNames

* fix(events): Return empty string instead of null when no pattern is specified in EventPattern (tf-compat) (#22)

* fix logic and revert CF changes to get tests running again (#21)

* add support for EC2 customer gateway API (#25)

* add support for EC2 Transit Gateway APIs (#24)

* feat(logs): add `kmsKeyId` into `LogGroup` entity (#23)

* minor change in ELBv2 logic to fix tests

* feat(events): add APIs to describe and delete CloudWatch Events connections (#26)

* add support for EC2 transit gateway route tables (#27)

* pass transit gateway route table ID in Describe API, minor refactoring (#29)

* add support for EC2 Transit Gateway Routes (#28)

* fix region on ACM certificate import (#31)

* add support for EC2 transit gateway attachments (#30)

* add support for EC2 Transit Gateway VPN attachments (#32)

* fix account ID for logs API

* add support for DeleteOrganization API

* feat(events): store raw filter representation for CloudWatch events patterns (tf-compat) (#36)

* feat(events): add support to describe/update/delete CloudWatch API destinations (#35)

* add Cognito UpdateIdentityPool, CW Logs PutResourcePolicy

* feat(events): add support for tags in EventBus API (#38)

* fix parameter validation for Batch compute environments (tf-compat)

* revert merge conflicts in IMPLEMENTATION_COVERAGE.md

* format code using black

* restore original README; re-enable and fix CloudFormation tests

* restore tests and old logic for CF stack parameters from SSM

* parameterize RequestId/RequestID in response messages and revert related test changes

* undo LocalStack-specific adaptations

* minor fix

* Update CodeCov config to reflect removal of Py2

* undo change related to CW metric filtering; add additional test for CW metric statistics with dimensions

* Terraform - Extend whitelist of running tests

Co-authored-by: acsbendi <acsbendi28@gmail.com>
Co-authored-by: Phan Duong <duongpv@outlook.com>
Co-authored-by: Thomas Rausch <thomas@thrau.at>
Co-authored-by: Macwan Nevil <macnev2013@gmail.com>
Co-authored-by: Dominik Schubert <dominik.schubert91@gmail.com>
Co-authored-by: Gonzalo Saad <saad.gonzalo.ale@gmail.com>
Co-authored-by: Mohit Alonja <monty16597@users.noreply.github.com>
Co-authored-by: Miguel Gagliardo <migag9@gmail.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-07-26 15:21:17 +01:00
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +01:00
Bert Blommers
e0d3b9145f
Terraform CI integration (#4081)
* CI - Add Terraform tests

* Relative paths

* Install TF cache only once
2021-07-24 14:49:43 +01:00
Evan O'Connell
85dc52bd84
Support all ELBv2 ListenerRule condition types (#4066)
* ELBv2 - ListenerRule condition validation

- ListenerRule condition model now uses upper case field names that
  match input params for boto and CloudFormation.
- BaseResponse._get_params() introduced to make it easier to deal
  with the querystring input params.
2021-07-16 08:01:14 +01:00
Shubham Gupta
a48c811069
#4067: Add support for kinesis retention hours (#4068) 2021-07-14 15:36:30 +01:00
Alastair McCormack
cb53f86c24
fix: cognito-idp: admin_create_user remove default attributes (#4070)
* 4069: fix: cognito-idp: admin_create_user remove default attributes
2021-07-14 15:35:09 +01:00
benediktbrandt
eb6515cf50
Reduce default value for DEFAULT_KEY_BUFFER_SIZE (#4003)
* - introduce environment variable for DEFAULT_KEY_BUFFER_SIZE

* - prefix env variable with MOTO_S3 to avoid env variable conflicts

* - reduce the DEFAULT_KEY_BUFFER_SIZE to be less than the S3_UPLOAD_PART_MIN_SIZE to prevent in memory caching of multi part uploads

* - black formatting

* - fix formatting

* - fix missing import
2021-07-07 16:38:50 +01:00
Ross Strickland
f9d5067faa
Bugfix for put_scaling_policy in applicationautoscaling. (#4054)
* Bugfix for put_scaling_policy in applicationautoscaling.

* Formatting.
2021-07-07 12:36:26 +01:00
Alexandre Blanchet
cf5007b97d
Add support for remove_flow_output and remove_flow_vpc_interface (#4058)
Co-authored-by: Alexandre Blanchet <alexandre.blanchet@m2amedia.tv>
2021-07-07 11:11:19 +01:00
Grégoire Charvet 黑瓜
00be464c05
Fix #3996 (#4051)
* Fix #3996

* Don't delete any message when duplicate handles
2021-07-07 08:59:16 +01:00
Brian Pandola
05cdcbcedc
Add support for DescribeNetworkInterfaces tag filters (#4057) 2021-07-04 07:44:58 +01:00
kohbis
c20a36b8cb
sns#create_platform_endpoint: If token and attributes are the same, return endpoint (#4055)
* If token and attributes are the same, return endpoint

* fix black

* moto sns platform_endpoint.attributes includes only token,enabled

* add tests when calling sns#create_platform_endpoint with same attrs for #4056
2021-07-04 07:43:22 +01:00
Grégoire Charvet 黑瓜
b44ab23c63
Fix #4009 (#4052)
Correctly raises an error when MessageGroupId is missing when sending a
batch of messages to a FIFO queue.
2021-07-04 07:40:39 +01:00
Brian Pandola
7147c5f05a
SES domains are case-insensitive (#4050) 2021-07-02 05:28:41 +01:00
Sahil Shah
3ae4c23c23
Transform certificates in listener in expected XML (#4049) 2021-07-01 16:25:40 +01:00
Bert Blommers
8cc439444f
#3991 - AWSLambda - set content-type to app/json (#4046) 2021-06-30 11:02:38 +01:00
Brian Pandola
163ae322e8
Fix: iot:UpdateThingShadow does not properly maintain state document (#4045)
Device shadow updates affect only the fields specified in the request state document.
Any field with a value of null is removed from the device's shadow.[1]

Verified behavior against a real AWS backend.

[1]: https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-rest-api.html#API_UpdateThingShadow
2021-06-30 08:15:45 +01:00
Sahil Shah
70a7a7e0a0
SSM parameters in cloudformation (AWS::SSM::Parameter::) are not recognized and resolved for default values (#4042)
* Add ssm parsing support for cloudformation stacks
2021-06-29 18:28:52 +01:00
Brian Pandola
315c357cd5
Fix error message for missing log stream (#4043) 2021-06-29 06:06:14 +01:00
Bert Blommers
a230e2a7e3
#3113 - S3#list_object_versions - verify prefix argument (#4041) 2021-06-28 16:22:08 +01:00
Bert Blommers
059c36b694
#3593 - S3 - Return appropriate error when provided with invalid multipart ID (#4040) 2021-06-28 15:57:07 +01:00
Jordi Alhambra
759974d9cd
Media store data Service (#3955)
* Add delete container and list tags endpoints to MediaStore

* Black reformat

* Fixed Lint problems

* Check if dictionary was deleted effectively

* lint fix

* MediaPackageClientError

* Lint Fix

* Test unknown channel describe

* Concatenation Fix

* MediaPackage - fix error message

* MediaPackage ClientError part2

* Mediastoredata not working

Base url

tests and renaming

typo

List Items not returning proper JSON and wrongly hitting get_object response

MediaStore2

Tests

* More implementation

* Fix tests and format

* Comments fix

* Comments 2

* MediastoreData - alternative logic to figure out appropriate host

Co-authored-by: av <arcovoltaico@gmail.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-06-28 13:23:23 +01:00
Bert Blommers
2590bf0e80
CognitoIDP: get_user (#4038)
* cognito-idp get_user support

* add carium expected attributes

* CognitoIDP#get_user - Add negative tests

Co-authored-by: Lalitha Kolla <lalitha.kolla@carium.com>
2021-06-27 15:48:31 +01:00
Alexandre Blanchet
167423777b
Add outputs and vpc interfaces to a mediaconnect flow (#4034)
* Add outputs and vpc interfaces to a mediaconnect flow

* Add negative tests for add_flow_outputs and add_flow_vpc_interfaces

* fix: fstring to format

* MediaConnect - add appropriate URLs for ServerMode tests

Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-06-25 15:31:05 +01:00
Bert Blommers
0f4ab4da1c
S3 - Dont error when deleting unknown keys (#4036)
* #1581 - S3 - Dont error when deleting unknown keys

* Update test_s3bucket_path.py
2021-06-25 10:26:03 +01:00
Bert Blommers
4778377e8e
#4018 - Raise NoSuchUpload when listing a non-existing multipart upload (#4031) 2021-06-24 08:14:28 +01:00
Bert Blommers
4af57c18bd
AWSLambda - Verify we can add multiple files to a Function (#3771) 2021-06-24 06:24:32 +01:00
Bert Blommers
5e4bccc22d
Use centralized ACCOUNT_ID (#4029) 2021-06-23 18:03:11 +01:00
Bert Blommers
6084d6cfe8
DynamoDB - Support AttributeUpdate::DELETE action (#3798) 2021-06-23 17:41:47 +01:00
psheets
b9a42816bd
Fixed validation on custom-resource in applicationautoscaling (#4026)
* Added ResourceTypeExceptions

* Added test for custom-resource

Co-authored-by: Phil Sheets <p.sheets@fetchrewards.com>
2021-06-23 16:57:09 +01:00
D. Ferruzzi
61e2204941
Initial EKS Implementaion (#3981)
* Implemented EKS list_clusters

* Implemented EKS create_cluster

* Implemented EKS describe_cluster

* Implemented EKS delete_cluster

* Implemented EKS list_nodegroups

* Implemented EKS create_nodegroup

* Implemented EKS describe_nodegroup

* Implemented EKS delete_nodegroup

* Implemented EKS Server Tests

* EKS - rework tests to use decorator everywhere

Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-06-20 11:34:31 +01:00
Cristopher Pinzón
e4057a34b9
Added "isTruncated" attribute for listUsersResponse (#4017)
* isTruncated attribute for listUsersResponse

* correction and test
2021-06-18 21:52:15 +01:00
Brian Pandola
a95ca81e76
Support EMR clusters with multiple master nodes (#4019)
Reference: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-ha-launch.html
2021-06-18 06:04:21 +01:00
Bert Blommers
2f23807a35
#3760 - DynamoDB - only raise exception when GSI key is actually empty (#3763) 2021-06-17 14:07:24 +01:00
Brian Pandola
b0e2a750dc
Disallow termination of protected EMR job flows (#4015)
Error message verified against real AWS backend.
2021-06-17 12:20:45 +01:00
Thomas Ross
67ae84e2c4
Only raise EmptyKeyAttributeException when the value node is empty (#4014)
This fixes a bug where all updates to keys (including GSIs) would raise
EmptyKeyAttributeException, even when the new value was not an empty string.
2021-06-17 12:19:47 +01:00
Jordi Alhambra
407d5c853d
Media package client error additional handling (#4011)
* Add delete container and list tags endpoints to MediaStore

* Black reformat

* Fixed Lint problems

* Check if dictionary was deleted effectively

* lint fix

* MediaPackageClientError

* Lint Fix

* Test unknown channel describe

* Concatenation Fix

* MediaPackage - fix error message

* MediaPackage Test Fix and TryError

* Lint

Co-authored-by: av <arcovoltaico@gmail.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-06-16 21:07:46 +01:00
Bert Blommers
cbeeefbec9
Prep release 2.0.9 (#4007)
* Update implementation coverage

* EC2 - Update instance type offerings

* IAM - update list of managed policies

* Changelog for release 2.0.9

* Instance Type Offerings - fix number of available offerings
2021-06-12 13:57:29 +01:00
Sahil Shah
6977bba3e1
Add capability to update AWS::ElasticLoadBalancingV2(Listener and ListenerRule) resource (#4005)
* Add ssm parsing support for cloudformation stacks

* Start adding unit tests for ssm parameter parsing

* Add tests for code update

* Add tests to parse ssm parameters code

* Fix black lint errors

* Fix bug.

* Need to specify region_name

* region needs to be same

* Use ssm_backends[region] instead of ssm_backend

* StringList -> string

* Linting

* check if servermode tests are on

* Typo

* Added support for ListenerRule. Will remove cruft

* Pushing latest

* Something works

* Put back ripped out code

* Save point. Incase I need more validations

* Revert "Save point. Incase I need more validations"

This reverts commit dac4953335dd9335eddb7a91a63667bc3c17104c.

* Fixed validations and some refactor

* Fix formatting

* Linting

* Cannot refactor if I have to fix all tests

* Remove exceptions for now. Will do in another PR

* Remove validations. Will add in next PR

* Fix broken tests. Almost.:

* Fix all tests. Some sneaky for now.

* Python2 making me write bad code

* OrderedDict.move_to_end() does not work in python2

* Linting

* Add more checks to field in conditions later.

* Unwnated change in FakeListener

* Revert "Unwnated change in FakeListener"

This reverts commit 962c2fdfd76fce999de9feccf1dd1c3ec48c459f.

* Add back default listener rule

* Linting fix

* Fix priority sorting

* Add cloudformation test for edge case

* Add validation for ForwardConfig in Action of ListernRule CF

* use not in

* set the priority template correctly

* Check for boolean in condition

* One more check

* Implement update_from_cloudformation_json for Listener and ListenerRule

* Unwanted spaces

* Linting issues

* Add tests for code coverage

Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
2021-06-11 21:56:28 +01:00
Kyle Decot
8d4007f2b6
Escape Hyphen in Regular Expression (#4006)
* Escape Hyphen in Regular Expression

* Add Test

* Fix Linting Errors

* Use Pytest Parameterize Marker

* Fix Black Formatting Errors

* Interpolate / Use Raw String

* fixes string formatting

Co-authored-by: Correna Sprowls <correna.sprowls@joinroot.com>
2021-06-11 21:54:43 +01:00
benediktbrandt
479ce861a7
Env variable for default key buffer size (#4001)
* - introduce environment variable for DEFAULT_KEY_BUFFER_SIZE

* - prefix env variable with MOTO_S3 to avoid env variable conflicts

* - black formatting

* - fix formatting
2021-06-10 10:48:28 +01:00
Brian Pandola
c1b38be02d
Add support for DynamoDB Backup/Restore (#3995)
* Add support for DynamoDB Backup/Restore

Basic support for the following endpoints has been implemented with full test coverage:
- create_backup
- delete_backup
- describe_backup
- list_backups
- restore_table_from_backup

Behavior and error messages verified against a real AWS backend.

* Refactor test based on PR feedback
2021-06-10 07:05:07 +01:00
Sahil Shah
3f5408c9d0
Adding support for ForwardConfig property in ListernRule in CloudFormation (#3993)
* Add ssm parsing support for cloudformation stacks

* Start adding unit tests for ssm parameter parsing

* Add tests for code update

* Add tests to parse ssm parameters code

* Fix black lint errors

* Fix bug.

* Need to specify region_name

* region needs to be same

* Use ssm_backends[region] instead of ssm_backend

* StringList -> string

* Linting

* check if servermode tests are on

* Typo

* Added support for ListenerRule. Will remove cruft

* Pushing latest

* Something works

* Put back ripped out code

* Save point. Incase I need more validations

* Revert "Save point. Incase I need more validations"

This reverts commit dac4953335dd9335eddb7a91a63667bc3c17104c.

* Fixed validations and some refactor

* Fix formatting

* Linting

* Cannot refactor if I have to fix all tests

* Remove exceptions for now. Will do in another PR

* Remove validations. Will add in next PR

* Fix broken tests. Almost.:

* Fix all tests. Some sneaky for now.

* Python2 making me write bad code

* OrderedDict.move_to_end() does not work in python2

* Linting

* Add more checks to field in conditions later.

* Unwnated change in FakeListener

* Revert "Unwnated change in FakeListener"

This reverts commit 962c2fdfd76fce999de9feccf1dd1c3ec48c459f.

* Add back default listener rule

* Linting fix

* Fix priority sorting

* Add cloudformation test for edge case

* Add validation for ForwardConfig in Action of ListernRule CF

* use not in

* set the priority template correctly

* Check for boolean in condition

* One more check

Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
2021-06-09 18:41:18 +01:00
Bert Blommers
43426c71f4
ELBv2 - Simplify tests (#3999) 2021-06-09 16:34:53 +01:00
Jordi Alhambra
ae5653b31d
Media package client error (#3983)
* Add delete container and list tags endpoints to MediaStore

* Black reformat

* Fixed Lint problems

* Check if dictionary was deleted effectively

* lint fix

* MediaPackageClientError

* Lint Fix

* Test unknown channel describe

* Concatenation Fix

* MediaPackage - fix error message

Co-authored-by: av <arcovoltaico@gmail.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-06-07 13:47:49 +01:00
usmangani1
9836985473
Fix : Logs - Add start_query functionality (#3985)
* Added start_query functionality

* fix tests
2021-06-07 10:37:11 +01:00
usmangani1
d325593e46
Fix:Add list connection API's (#3976)
* Initial commit create connection

* Added connection API's

* Add destination API's

* fixed tests

* fix tests

* Fixed tests
2021-06-07 10:35:28 +01:00
stromp
9e4972b43f
Add Tag support for other resource types then an account (#3982)
* - Adding checking for resource type in tag functions
- Adding TargetNotFoundException when no resource found
- Adding support for tags for root OU, OU and Policies
- Adding tests covering the new code
- Adding test for deletion of a tag

* fixed linting issue

* - renamed helper function to a more logical name
- added tests for helper function
- fixed bugs in tests for tag functions

Co-authored-by: Sjoerd Tromp <stromp@schubergphilis.com>
2021-06-05 15:12:17 +01:00
Sahil Shah
b82096ba37
Add support for AWS::ElasticLoadBalancingV2::ListenerRule (#3969)
* Add ssm parsing support for cloudformation stacks

* Start adding unit tests for ssm parameter parsing

* Add tests for code update

* Add tests to parse ssm parameters code

* Fix black lint errors

* Fix bug.

* Need to specify region_name

* region needs to be same

* Use ssm_backends[region] instead of ssm_backend

* StringList -> string

* Linting

* check if servermode tests are on

* Typo

* Added support for ListenerRule. Will remove cruft

* Pushing latest

* Something works

* Put back ripped out code

* Save point. Incase I need more validations

* Revert "Save point. Incase I need more validations"

This reverts commit dac4953335dd9335eddb7a91a63667bc3c17104c.

* Fixed validations and some refactor

* Fix formatting

* Linting

* Cannot refactor if I have to fix all tests

* Remove exceptions for now. Will do in another PR

* Remove validations. Will add in next PR

* Fix broken tests. Almost.:

* Fix all tests. Some sneaky for now.

* Python2 making me write bad code

* OrderedDict.move_to_end() does not work in python2

* Linting

* Add more checks to field in conditions later.

* Unwnated change in FakeListener

* Revert "Unwnated change in FakeListener"

This reverts commit 962c2fdfd76fce999de9feccf1dd1c3ec48c459f.

* Add back default listener rule

* Linting fix

* Fix priority sorting

* Add cloudformation test for edge case

Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
2021-06-05 10:04:04 +01:00
Mike Grima
ba7a0fe3a2 Fixed AWS Config S3 ACL issues
- AWS Config appears to have changed how ACLs are returned
- This PR makes moto's behavior consistent with AWS Config's S3 representation

Fixes #3986
2021-06-04 09:23:56 -07:00
Austin Hendrix
5602c4e73e
SSM Parameter Store improvements in GetParameterHistory & GetParameters (#3984)
* Including labels and versions in SSM Get Parameters

* implementing NextToken and MaxResults into the SSM Get Parameter History functionality

* Implementing unit tests and some lint refactoring for NextToken implementation in get_parameter_history
2021-06-04 11:12:35 +01:00
Austin Hendrix
b670962c5e
SSM Parameter Store Error Message When Requesting Invalid Version (#3977)
* Implement correct error when requesting specific version of a parameter which exists but does not have this version

* removing trailing whitespace causing lint failure

* Adding unit tests and fixing linting for new error handling

* Fixing small bug in response message

* Revert change in get_parameters as versioning is not currently implemented in this method. Will fix as a separate PR
2021-06-02 16:27:23 +01:00
Brian Pandola
7947b1e001
Enforce SSM Parameter Version Limit (#3967)
Behavior verified against a real AWS backend.
2021-05-28 08:32:39 +01:00
Brian Pandola
3265e89fd3
Allow Glacier VaultName to contain period (#3964) 2021-05-27 08:44:20 +01:00
Florian Dambrine
6adb570c48
Add dot as a valid s3 metadata key (#3958) 2021-05-26 14:27:25 +01:00
Thomas Maschler
d635c78bd1
AWS Batch enhancements (#3956)
* Check exit status of container

* Added support for job dependencies

* batch container overrides

* add AWS_BATCH_JOB_ID to container env variables

* lint with black

* refactor batch dependency test

* refactor batch dependency test

* fix index

Co-authored-by: jterry64 <justin.terry@wri.org>
Co-authored-by: Daniel Mannarino <daniel.mannarino@gmail.com>
2021-05-26 08:52:09 +01:00
rajinder
fbbc8fc472
basic implementation of update rest api (#3951)
* basic implementation of update rest api

* basic implementation of update rest api

* basic implementation of update rest api

* review comments from bblommers

Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-05-23 17:09:02 +01:00
Brian Pandola
16f4dc87dc
Add support for tagging Volumes in ec2:RunInstances (#3946) 2021-05-21 06:35:34 +01:00
Jordi Alhambra
7f49cd0ed6
MediaStore delete container and list tags endpoints implemented (#3938)
* Add delete container and list tags endpoints to MediaStore

* Black reformat

* Fixed Lint problems

* Check if dictionary was deleted effectively

* lint fix

Co-authored-by: av <arcovoltaico@gmail.com>
2021-05-20 16:17:31 +01:00
Brian Pandola
752b508738
Add support for KmsKeyId in ec2:RunInstances (#3943) 2021-05-20 07:11:50 +01:00
rajinder
58f7ab0d25
Refector Apigateway update_usage_plan and add all replace operation. (#3942)
* Refector Apigateway update_usage_plan and add all replace operation.

* code reformatting

Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-05-20 07:10:08 +01:00
Sahil Shah
24fa8f25a1
SSM parameters in cloudformation (AWS::SSM::Parameter::) are not recognized and resolved (#3929)
* Add ssm parsing support for cloudformation stacks

* Start adding unit tests for ssm parameter parsing

* Add tests for code update

* Add tests to parse ssm parameters code

* Fix black lint errors

* Fix bug.

* Need to specify region_name

* region needs to be same

* Use ssm_backends[region] instead of ssm_backend

* StringList -> string

* Linting

* check if servermode tests are on

* Typo

Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
2021-05-19 08:30:25 +01:00
usmangani1
4ad6c3932e
Fix resource group get-group-query & update-query-query (#3934)
* Fix resource group get-group-query & update-query-query

* Remove list logic

* Added tests

* Fix tests

* Fix update query tests

* fix tests
2021-05-18 20:58:21 +01:00
Giovanni Torres
867cf078de
feat: transition elbv2 state to active on first describe (#3937)
* refactor: parameterize state in elbv2 template response

* feat: transition load balancer to active on first describe

Closes #3936
2021-05-18 07:52:39 +01:00
usmangani1
31cf3c4252
Fix:SES-Added params check in template (#3753)
* Fix:SES-Added params check in template

* Added more tests and handled message

* linting

* fixed tests

* fix attribute name in message

* fix logic for exception
2021-05-18 07:51:27 +01:00
usmangani1
abc62b360d
Fix- Raise InvalidParameterValue when change visibility timeout is mo… (#3893)
* Fix- Raise InvalidParameterValue when change visibility timeout is more than permitted

* Fix review comments

* Modified tests

* Fix tests

* change

* Change client

* Fix tests

* fix tests

* fix tests

* change tests

* Fix tests

* changed tests

* Fix tests

* Fix tests

* Change message
2021-05-18 07:49:56 +01:00
usmangani1
03b2009a1c
Add unit support to cloudwatch get_metric_statistics (#3932)
* Add unit support to cloudwatch get_metric_statistics

* fix linting
2021-05-15 08:05:41 +01:00
usmangani1
58fd4aeaae
Fix tags for resource in ListTagsForResource (#3931)
* Fix tags for resource in ListTagsForResource

* Fix review comments

* Fix tests
2021-05-14 20:05:40 +01:00
usmangani1
eaac32b130
ResourceGroup - Add Support for getGroupConfiguration (#3919)
* ResourceGroup - Add Support for getGroupConfiguration

* Add tests

* Add tests

* Fix tests

* linting

* fix tests

* fix tests

* fix tests

* fixed linting

* fix tests
2021-05-14 07:40:17 +01:00
Kai
f9e0595e12
Fix sqs message retention logic (#3924)
* Fix sqs message retention logic

* Apply lint to moto/sqs/models.py

* Fix failed tests because of freezing time

* Fix freezing time in test_publish_to_sqs_in_different_region
2021-05-13 15:06:54 +01:00
Bert Blommers
9e3faf7784
Make Moto (tests) compatible with flask/werkzeug 2.x (#3923)
* Dont fail if CodeCov fails - for now

* CI - Force cache rebuild

* Bump werkzeug to latest version

* CI - Enforce cache flush

* ManagedBlockchain - fix error format

* ManagedBlockchain - Fix tests to use pytest.raises paradigm

* Revert "Lock Flask (#3925)"

This reverts commit 8bb0feb956.

* CI - Enforce cache rebuild
2021-05-13 10:36:56 +01:00
Daniel Samuels
a4b1498665
Support rotating secrets using Lambda [#3905] (#3912)
* Support rotating secrets using Lambda

The Secrets manager rotation process uses an AWS Lambda function
to perform the rotation of a secret. [1]

In fact, it's not possible to trigger rotation of a Secret
without specifying a Lambda function at some point in the life
of the secret:

```
$ aws secretsmanager rotate-secret --secret-id /rotationTest

An error occurred (InvalidRequestException) when calling the RotateSecret operation: No Lambda rotation function ARN is associated with this secret.
```

`moto` can be a little more lenient in this regard and allow
`rotate_secret` to be called without a Lambda function being
present, if only to allow simulation of the `AWSCURRENT` and
`AWSPREVIOUS` labels moving across versions.

However, if a lambda function _has_ been specified when calling
`rotate_secret`, it should be invoked therefore providing the
developer with the full multi-stage process [3] which can be
used to test the Lambda function itself and ensuring that full
end-to-end testing is performed. Without this there's no easy
way to configure the Secret in the state needed to provide the
Lambda function with the data in the format it needs to be in
at each step of the invocation process.

[1]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-lambda-function-overview.html
[2]: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html#SecretsManager.Client.rotate_secret
[3]: https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-lambda-function-overview.html#rotation-explanation-of-steps

* Run `black` over `secretsmanager/models.py`

* Make `lambda_backends` import local to the condition

* Implement `update_secret_version_stage`

Allow a staging label to be moved across versions.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/secretsmanager.html#SecretsManager.Client.update_secret_version_stage

* Add an integration test for Secrets Manager & Lambda

* Support passing `ClientRequestToken` to `put_secret_value`

By passing `ClientRequestToken` to `put_secret_value` within
the lambda function  invoked by calling `rotate_secret`, one
can update the value associated with the existing (pending)
version, without causing a new secret version to be created.

* Add application logic for `AWSPENDING`

The rotation function must end with the versions of the secret
in one of two states:

 - The `AWSPENDING` and `AWSCURRENT` staging labels are
   attached to the same version of the secret, or
 - The `AWSPENDING` staging label is not attached to any
   version of the secret.

If the `AWSPENDING` staging label is present but not attached
to the same version as `AWSCURRENT` then any later invocation
of RotateSecret assumes that a previous rotation request is
still in progress and returns an error.

* Update `default_version_id` after Lambda rotation concludes

Call `set_default_version_id` directly, rather than going 
through `reset_default_version` as the Lambda function is 
responsible for moving the version labels around, not `rotate_secret`.

* Run `black` over changed files

* Fix Python 2.7 compatibility

* Add additional test coverage for Secrets Manager

* Fix bug found by tests

AWSPENDING + AWSCURRENT check wasn't using `version_stages`.
Also tidy up the AWSCURRENT moving in `update_secret_version_stage`
to remove AWSPREVIOUS it from the new stage.

* Run `black` over changed files

* Add additional `rotate_secret` tests

* Skip `test_rotate_secret_lambda_invocations` in test server mode

* Add test for invalid Lambda ARN
2021-05-11 12:08:01 +01:00
Neil Greenwood
45167737e5
Fix separator in filter_log_events nextToken value. (#3914)
The old separator was present in some of the values being concatenated.
2021-05-07 18:49:36 +01:00
Josh McCullen
12b409e0de
Set multiple Security Groups when calling modify_network_interface_attribute (#3911) 2021-05-07 13:50:26 +01:00
Maria
cf3cf8b134
DMS - basic task replication methods implementation (#3900)
* DMS - basic task replication methods implementation

* Add ResourceNotFoundFault tests
2021-05-06 18:33:48 +01:00
George-lewis
f76571199f
Implement User Pool MFA Actions (#3903)
* implement user pool mfa actions

* Add messages to errors

Add messages to errors

Fix error message

* Change exception type

* fix validation & add more tests

Co-authored-by: George Lewis <glewis@evertz.com>
2021-05-06 17:59:04 +01:00
khneal
e5b3f4181d
EC2 describe_network_acls: add support for owner-id filter (#3898)
* add test that fails with FilterNotImplementedError

* describe_network_acls: add support for owner-id filter

Co-authored-by: Kevin Neal <Kevin_Neal@intuit.com>
2021-05-05 13:15:43 +01:00
Neil Greenwood
94a70e9ad1
nextToken value in logs:describeLogStreams response (#3896)
* `nextToken` value in `logs:describeLogStreams` response

Modified the pagination for FilterLogEvents to more closely follow
the real AWS behaviour.

* Make assertions work in py2 and py3.
2021-05-04 17:45:23 +01:00
usmangani1
0cff5458af
Fix : Remove Invalid request error when response-template is not specified (#3885)
* Fix : Remove Invalid request error

* Fix test and review commanets

* Remove duplicate put_integration_template

* API Gateway - Body can be None or empty

Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-05-01 15:45:06 +01:00
usmangani1
85d94ad6ed
Fix:SQS Added support for system attributes in sqs (#3878)
* Adding SQS system attributes

* Fix Comments

* Change template in response
2021-05-01 07:48:39 +01:00
Matthew Davis
d6384fcb35
Enforce dynamodb key size limit [solves #3866] (#3888)
* add tests for dynamodb max key size

correct too-large error for ddb key

* remove unnecessary requires_boto_gte decorator from ddb tests

* remove literal emoji from ddb test

* implement dynamodb key limits, WIP

* correct direction of dynamodb range key length check

* fix tests for dynamodb max key size check

* catch ddb validation errors and rethrow properly

* finish ddb key size limit fixes

* fix linting

* handle unicode in v2.7 tests

* fix encoding issue in py2.7 for ddb

* linting

* Python2/3 compatability

Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-04-30 13:47:47 +01:00
amar jandu
58381cce8f
S3 - Fix exception for missing versionID (#3887) 2021-04-30 12:36:08 +01:00
Gianluca Pacchiella
273d632515
Fix/autoscaling elb interaction (#3757)
* Add minimal failing test case.

* Improve ELB instance ids handling.

We need to handle the instances originated by an autoscaling group differently.
2021-04-30 09:29:20 +01:00
Neil Greenwood
bcc7938615
Fix: nextToken value in logs:FilterLogEvents response (#3883)
* Fix: `nextToken` value in `logs:FilterLogEvents` response

Plagiarizing freely from @bpandola and his PR #3398, I have
modified the pagination for FilterLogEvents to more closely follow
the real AWS behaviour.

Fixes #3882

* Black reformatted my code.

* Remove timezone for python2.7 compatibility.

* Hopefully fix python2.7 compatibility for real.

* Additional test for a non-matching log group name in the nextToken.
2021-04-29 12:56:20 +01:00
khneal
8b523c3fe1
EMR and SWF - add arn to response (#3873)
* emr: add ClusterArn to describe_cluster response

* emr: add ClusterArn to list_clusters response

* emr: add ClusterArn to put_auto_scaling_policy response

* emr: add ClusterArn to run_job_flow response

* emr: rename property "cluster_arn" to simply "arn"

* emr: generalize arn for account_id and region

* swf: add arn to list_domains response

* black reformat source code

* fix double import

* swf: require region on Domain object

Co-authored-by: Kevin Neal <Kevin_Neal@intuit.com>
2021-04-23 15:20:36 +01:00
Deepesh J
c31dffcc92
List instances Implementation in EMR (#3871)
* Implemented list instances in EMR

* removed import from tests

* make format

* fix W291 trailing whitespace

* removed to work for py2.7

* Storing only ec2_id and instance group in Fake instance

Co-authored-by: J <jdeepe@147dda1b0833.ant.amazon.com>
2021-04-23 08:03:06 +01:00