diff --git a/providers/src/awscc/v00.00.00000/services/s3.yaml b/providers/src/awscc/v00.00.00000/services/s3.yaml index 6d4ac81a..1f6e022f 100644 --- a/providers/src/awscc/v00.00.00000/services/s3.yaml +++ b/providers/src/awscc/v00.00.00000/services/s3.yaml @@ -2678,7 +2678,7 @@ components: JSON_EXTRACT(Properties, '$.DomainName') as domain_name, JSON_EXTRACT(Properties, '$.DualStackDomainName') as dual_stack_domain_name, JSON_EXTRACT(Properties, '$.RegionalDomainName') as regional_domain_name, - SPLIT_PART(JSON_EXTRACT(Properties, '$.RegionalDomainName'), '.', 3) as bucket_location, + SPLIT_PART(SPLIT_PART(JSON_EXTRACT(Properties, '$.RegionalDomainName'), '.s3.', 2), '.', 1) as bucket_location, JSON_EXTRACT(Properties, '$.WebsiteURL') as website_url FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::S3::Bucket' AND data__Identifier = '' @@ -2713,7 +2713,7 @@ components: json_extract_path_text(Properties, 'DomainName') as domain_name, json_extract_path_text(Properties, 'DualStackDomainName') as dual_stack_domain_name, json_extract_path_text(Properties, 'RegionalDomainName') as regional_domain_name, - SPLIT_PART(json_extract_path_text(Properties, 'RegionalDomainName'), '.', 3) as bucket_location, + SPLIT_PART(SPLIT_PART(json_extract_path_text(Properties, 'RegionalDomainName'), '.s3.', 2), '.', 1) as bucket_location, json_extract_path_text(Properties, 'WebsiteURL') as website_url FROM awscc.cloud_control.resource WHERE data__TypeName = 'AWS::S3::Bucket' AND data__Identifier = ''