58 Commits

Author SHA1 Message Date
Bert Blommers
42b03d36ac
SQS: Support JSON format (#6331) 2023-05-24 21:19:40 +00:00
Viren Nadkarni
8ca9c17e5e
SNS: Cross-account access for topics (#6330) 2023-05-21 11:14:38 +00:00
Bert Blommers
e2d3582471
Techdebt: MyPy U (#6265) 2023-04-29 10:40:11 +00:00
Bert Blommers
c2e3d90fc9
Techdebt: MyPy S3 (#6235) 2023-04-20 16:47:39 +00:00
Bert Blommers
90d67db6ea
AWSLambda: Do not keep downloading Docker images (#6207) 2023-04-13 09:25:47 +00:00
Oliver Mannion
30a3df58f7
Techdebt: add typing to AMIS (#6063) 2023-03-15 22:38:20 -01:00
Bert Blommers
f1f4454b0f
Techdebt: MyPy g-models (#6048) 2023-03-11 16:00:52 -01:00
Bert Blommers
33ce02056d
Techdebt: MyPy F-services (#6021) 2023-03-06 21:41:24 -01:00
Bert Blommers
a59f921036
Techdebt: MyPy ELBv2 (#6001) 2023-03-01 10:39:12 -01:00
Bert Blommers
418c69f477
Techdebt: MyPy EC2 (#5936) 2023-02-16 20:43:43 -01:00
Bert Blommers
b8350f2801
Techdebt: MyPy EC2 (t-models) (#5922) 2023-02-12 16:53:36 -01:00
Bert Blommers
75059fd4cf
Techdebt: MyPy EC2 (b-models) (#5890) 2023-02-01 16:30:58 -01:00
Bert Blommers
67ecc3b1db
Techdebt: MyPy EC2 (a-models) (#5888) 2023-02-01 10:27:13 -01:00
Bert Blommers
00ad788975
Techdebt: MyPy DynamoDB (#5863) 2023-01-22 21:06:41 -01:00
Bert Blommers
66507dd898
SES: Improve template parsing (#5853) 2023-01-19 18:27:39 -01:00
Bert Blommers
b4f59b771c
Techdebt: Replace string-format with f-strings (#5695) 2022-11-21 22:20:19 -01:00
Bert Blommers
ea8718d402
TechDebt: Move BackendDict to base_backend (#5645) 2022-11-10 08:43:20 -01:00
Bert Blommers
2500affb1d
TechDebt: MyPy Config (#5633) 2022-11-03 18:32:00 -01:00
Bert Blommers
78bf4a82d5
Techdebt: MyPy Cognito (#5626) 2022-11-01 09:33:01 -01:00
Bert Blommers
c0b581aa08
TechDebt: MyPy CostExplorer (#5593) 2022-10-23 20:42:14 +00:00
Bert Blommers
6f3b250fc7
TechDebt: MyPy Batch (#5592) 2022-10-23 13:26:55 +00:00
Bert Blommers
8c88a93d7c
TechDebt: MyPy AWSLambda (#5586) 2022-10-22 11:40:20 +00:00
Bert Blommers
62f93c7ed0
Techdebt: MyPy Autoscaling (#5581) 2022-10-19 20:56:24 +00:00
Bert Blommers
56ca48cfdd
TechDebt: Enable MyPy on APIGateway-module (#5549) 2022-10-11 13:16:27 +00:00
Bert Blommers
d60aa64abb
TechDebt: Enable MyPy on AMP (#5546) 2022-10-10 13:05:56 +00:00
Bert Blommers
aa7d68a688
Feature: Ability to seed Moto, and make random ID's deterministic (#5492) 2022-09-28 09:35:12 +00:00
Bert Blommers
0fe30b0440
MD5 - set usedforsecurity-parameter for all uses (#5190) 2022-06-03 09:41:30 +00:00
Bert Blommers
beb05662e4
Feature: Dockerless Batch (#5100) 2022-05-06 09:45:56 +00:00
Bert Blommers
472b1dab0c
ELBv2 - improve tagging (#4964) 2022-03-23 19:44:12 -01:00
Brian Pandola
a90d8c801b Add Pagination for Organizations:ListAccounts 2022-03-19 17:34:58 -07:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -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
55681bb5db
Techdebt - remove dependency on deprecated distutils (#4657) 2021-12-05 17:13:01 -01:00
Bert Blommers
4befb671f0
Paginator - make development easier + docs (#4650) 2021-12-03 15:33:35 -01:00
kbalk
958a129f97
Route53Resolver: Add resolver endpoint-related APIs (#4559) 2021-11-17 19:06:35 -01:00
Andrew Achkar
4af8b43722
Remove six import (#4577)
Closes #4575
2021-11-14 16:18:54 -08:00
Bert Blommers
e388a25141
S3 - Return default content type (#4439) 2021-10-19 16:46:23 +00:00
Shreesha Addala
c62bd5ca41
Enforce tagging restrictions for S3 object (#4417) 2021-10-15 19:10:28 +00:00
Bert Blommers
c642e8b4a7
Feature: Kinesis - list_shards() (#3752) 2021-10-09 20:18:13 +00: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
Bert Blommers
76094f012b
Remove pkg_resources module (#4142) 2021-08-05 17:59:25 +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
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
21a77510b3
Rewrite unnecessary importlib dependency in DynamoDB (#4035) 2021-06-25 07:58:57 +01:00
Bert Blommers
39db57d151
Add encoding-param to open(), in case the underlying OS has a different default (#3827) 2021-04-01 16:51:10 +01:00
Bert Blommers
c95ab15268
Support - Ensure advisors_checks-file is properly encoded (#3823) 2021-04-01 09:02:53 +01:00
Chih-Hsuan Yen
2000f6654f
Support Podman for mocking Lambda (#3702)
* Support Podman for mocking Lambda

Podman supports all Docker APIs used in moto since version 3.0. Note
that Podman requires pulling the image before creating a container
using a fully-qualified image name (e.g., "docker.io/library/busybox"
instead of "busybox").

Test plan:
$ podman system service -t 0
$ DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock" pytest

Fixes https://github.com/spulec/moto/issues/3276

* Run black

* Python 2 compatibility

* Address review comments and improve parse_image_ref
2021-02-18 08:58:20 +00:00
Connor
4d0ee82f98
support - intial commit to kick off trusted advisor checks (#3685)
* support - intial commit to kick off trusted advisor checks

* edit - expanded testing to include checking for expected check ids and
check names.

Added server testing

added support resource json to manifest file and simplified
support response return from reviewed comments

* Streamline loading of resource files

* edit - ensured regions are assigned in models

Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-02-14 12:22:16 +00:00