From 87ed92415b6a53604dd28a72ac4fee0fff3ad9f6 Mon Sep 17 00:00:00 2001 From: Shalev Avhar <51760613+shalev007@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:56:25 +0300 Subject: [PATCH] [Integration][AWS] Fix wrong parameter name in default mapping (#795) # Description What - change the "get extra data" parameter to the correct name (matches the docs) Why - the prev parameter is not the correct parameter How - change the name to `useGetResourceAPI` ## Type of change Please leave one option from the following and delete the rest: - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] New Integration (non-breaking change which adds a new integration) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Non-breaking change (fix of existing functionality that will not change current behavior) - [ ] Documentation (added/updated documentation) ## Screenshots Include screenshots from your environment showing how the resources of the integration will look. ## API Documentation Provide links to the API documentation used for this integration. --------- Co-authored-by: Shalev Avhar --- integrations/aws/.port/resources/port-app-config.yml | 8 +++++--- integrations/aws/CHANGELOG.md | 7 +++++++ integrations/aws/pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/integrations/aws/.port/resources/port-app-config.yml b/integrations/aws/.port/resources/port-app-config.yml index cef479d58d..f34e10f4aa 100644 --- a/integrations/aws/.port/resources/port-app-config.yml +++ b/integrations/aws/.port/resources/port-app-config.yml @@ -18,7 +18,7 @@ resources: - kind: AWS::S3::Bucket selector: query: 'true' - useGetResource: 'true' + useGetResourceAPI: 'true' port: entity: mappings: @@ -27,7 +27,9 @@ resources: blueprint: '"cloudResource"' properties: kind: .__Kind - region: .__Region + region: >- + .Properties.RegionalDomainName | + capture(".*\\.(?[^\\.]+)\\.amazonaws\\.com") | .region tags: .Properties.Tags arn: .Properties.Arn link: '.Properties | select(.Arn != null) | "https://console.aws.amazon.com/go/view?arn=" + .Arn' @@ -53,7 +55,7 @@ resources: - kind: AWS::ECS::Cluster selector: query: 'true' - useGetResource: 'true' + useGetResourceAPI: 'true' port: entity: mappings: diff --git a/integrations/aws/CHANGELOG.md b/integrations/aws/CHANGELOG.md index 757f3ed25b..55a10199f7 100644 --- a/integrations/aws/CHANGELOG.md +++ b/integrations/aws/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +# Port_Ocean 0.2.12 (2024-07-09) + +### Improvements + +- Fix default useGetResourceAPI property name (#1) +- Use by default the actual S3 Bucket region instead of default region used to fetch it (#2) + # Port_Ocean 0.2.11 (2024-07-09) ### Improvements diff --git a/integrations/aws/pyproject.toml b/integrations/aws/pyproject.toml index 999bdd954f..2c3a24125d 100644 --- a/integrations/aws/pyproject.toml +++ b/integrations/aws/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aws" -version = "0.2.11" +version = "0.2.12" description = "This integration will map all your resources in all the available accounts to your Port entities" authors = ["Shalev Avhar ", "Erik Zaadi "]