217 Commits

Author SHA1 Message Date
Bert Blommers
e26cfe7dc6
Techdebt: MyPy: Remove unused ignores (#6542) 2023-07-20 15:46:54 +00:00
Daniel Fangl
3ddfc0db40
IAM: fix keyerror result when attaching non-existent policy, add tests, fix error message for user as well (#6482) 2023-07-05 15:00:19 +00:00
rafcio19
627dd3073c
IAM: additional role on instance profile validation (#6415) 2023-06-17 11:19:59 +00:00
Bert Blommers
6c32c089a1
Feature: LakeFormation (#6172) 2023-04-04 09:36:48 +00:00
Bert Blommers
e0726f2d63
Feature: OpenSearch (#6128) 2023-03-26 12:43:28 +00:00
Bert Blommers
fe8d30ae63
Techdebt: MyPy IAM (#6066) 2023-03-14 18:52:07 -01:00
Bert Blommers
3a430780f7
Terraform - Update to latest commit (#5982) 2023-02-25 19:24:03 -01:00
Bert Blommers
eb79d064e8
IAM: get_user() should return PasswordLastUsed-field if set (#5942) 2023-02-18 09:48:02 -01:00
Bert Blommers
40a3a529f9
Core: Rework model_data to only clear on exit (#5920) 2023-02-12 16:58:30 -01:00
Bert Blommers
7d7663d703
IAM: add_user_to_group() should be idempotent (#5899) 2023-02-03 11:07:02 -01:00
Mike Grima
4d7c9c9e70
Fixed an issue with the moto IAM backend when used in Thread Pools (#5882) 2023-01-30 10:20:13 -01:00
Bert Blommers
89fdf9dbcb
Remove Py3.6 support (#5818) 2023-01-06 11:07:20 -01:00
Bert Blommers
2c8e795991
Techdebt: Replace string-format with f-strings (for i* dirs) (#5682) 2022-11-18 22:09:16 -01:00
Bert Blommers
ea8718d402
TechDebt: Move BackendDict to base_backend (#5645) 2022-11-10 08:43:20 -01: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
Wonhyeong Seo
2c0adaa932
IAM:detach_*_policy(): Fix divergent error handling with aws (#5559) 2022-10-19 09:59:12 +00:00
Daniel Fangl
de23d172ea
IAM: Make assumed role user ids dependent on role (#5501) 2022-09-29 22:14:03 +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
72db853d08
TechDebt - remove Py2 references (#5488) 2022-09-20 14:08:01 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Kent Ou
12d58bbf29
iam - add RoleLastUsed to get_role response (#5302) 2022-08-04 16:18:06 +00:00
Michael Merrill
23c4f47635
Implement IAM back end part of update_assume_role_policy to validate policies (#5340) 2022-07-30 00:25:56 -03:00
Cristopher Pinzón
bc3ddcff5b
IAM Access Key limit per user (#5337) 2022-07-27 13:19:34 -03:00
Viren Nadkarni
036cc6879e
IAM: Issues with ListMFADevices and CreateVirtualMFADevice (#5334) 2022-07-26 10:10:18 -03:00
Bert Blommers
a2c2c06243
Techdebt - Align models-responses integration for all services (#5207) 2022-06-09 17:40:22 +00:00
Bert Blommers
79a2a9d423
Preparation for MultiAccount support (#5157) 2022-06-04 11:30:16 +00:00
Bert Blommers
0fe30b0440
MD5 - set usedforsecurity-parameter for all uses (#5190) 2022-06-03 09:41:30 +00:00
Thomas Rausch
e911341e6a
add indirection to access account id (#5098) 2022-05-08 22:25:40 +00:00
Bert Blommers
76fe578d95
IAM - Implement ServiceLinkedRoles (#5089) 2022-05-03 09:44:47 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules (#5037) 2022-04-18 20:44:56 +00:00
Kent Ou
56a2fd384c
Enhance IAM credentials report to dynamic mfa_active and password_last_used (#5004) 2022-04-07 16:35:08 +00:00
Bert Blommers
47ce689cb7
ELB/ELBv2 improvements (#4956) 2022-03-21 19:55:19 -01:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Josh Kaplinsky
5daa104a6e
fix policy attribute exception (#4868) 2022-02-17 11:39:43 -01:00
Bert Blommers
bb6fb1200f
ELBv2 - Allow IAM certificates when calling modify_listener (#4823) 2022-02-04 20:59:23 -01:00
Bert Blommers
d118d592ca
Pylint remaining source code (#4760) 2022-01-14 18:51:49 -01:00
Macwan Nevil
c4338b8aea
added support for openid connect (#4656) 2021-12-05 19:59:31 -01:00
Bert Blommers
9258316e16
Prep 2.2.17 release (#4642) 2021-11-29 19:35:18 -01:00
Macwan Nevil
ce0d21e9c6
added support for update IAM groups (#4633) 2021-11-25 20:36:33 -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
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
1a42b33781
IAM - Delete Role/InstanceProfile via CloudFormation (#3591) 2021-08-28 11:00:05 +01:00
Bert Blommers
6b960e0d4f
CF support for IAM:ManagedPolicy (#3933) 2021-08-28 07:32:10 +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
Anton Grübel
fe9f1dfe14
Add tag & untag user (#3638)
* Add iam.tag_user

* Add iam.untag_user

* Fix Python2 error
2021-02-01 11:37:54 +00:00
Mykola Mykhalov
689cd8f285
Implement IAM instance profile associations (#3482)
* Add associate_iam_instance_profile describe_iam_instance_profile_associations, disassociate_iam_instance_profile, replace_iam_instance_profile_association

* More tests, removed type hints, filter fix

* Ec2 fix
2020-11-20 22:00:53 +00:00