Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated aws and awscc #220

Merged
merged 7 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions providers/src/awscc/v00.00.00000/services/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
2 changes: 2 additions & 0 deletions providers/src/awscc/v00.00.00000/services/s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2678,6 +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(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 = '<BucketName>'
Expand Down Expand Up @@ -2712,6 +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(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 = '<BucketName>'
Expand Down
9 changes: 9 additions & 0 deletions scripts/setup/get-updated-providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
provider['action'] = action
provider['path'] = path.rstrip('\n')
updates.append(provider)
if provider_name == 'awscc':
# add faux provider update for aws, as aws is a dependency of awscc
all_provider_versions.append(json.dumps({ 'provider' : 'aws', 'provider_dir': 'aws', 'source_version': 'v00.00.00000', 'target_version': target_version}))
provider['provider'] = 'aws'
provider['provider_dir'] = 'aws'
provider['source_version'] = 'v00.00.00000'
provider['target_version'] = target_version
provider['action'] = 'M'
provider['path'] = 'providers/src/awscc/v00.00.00000/provider.yaml'

# convert to set to remove duplicates
providers = []
Expand Down
Loading