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 awscc provider #206

Merged
merged 2 commits into from
Mar 7, 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
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
REG_DENO_DEPLOY_API_PROD: stackql-registry

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.1
name: "[SETUP] checkout repo"
with:
fetch-depth: 0
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:

- name: '[PACKAGE] set up golang'
if: env.NUM_PROVIDERS > 0
uses: actions/setup-go@v3
uses: actions/setup-go@v5.0.0
with:
go-version: ^1.19
check-latest: true
Expand Down Expand Up @@ -124,7 +124,6 @@ jobs:
while IFS= read -r provider
do
echo "testing ${provider}..."
tree $providersdir
sh test-provider.sh $provider false $providersdir
done < ../providers.txt

Expand Down
1 change: 0 additions & 1 deletion providers/src/awscc/v00.00.00000/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1870,4 +1870,3 @@ config:
type: aws_signing_v4
credentialsenvvar: AWS_SECRET_ACCESS_KEY
keyIDenvvar: AWS_ACCESS_KEY_ID

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
24 changes: 12 additions & 12 deletions providers/src/awscc/v00.00.00000/services/neptune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,15 +285,15 @@ components:
ddl: |-
SELECT
region,
JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as d_bcluster_identifier
JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as dbcluster_identifier
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::Neptune::DBCluster'
AND region = 'us-east-1'
fallback:
predicate: sqlDialect == "postgres"
ddl: |-
SELECT
region,
json_extract_path_text(Properties, 'DBClusterIdentifier') as d_bcluster_identifier
json_extract_path_text(Properties, 'DBClusterIdentifier') as dbcluster_identifier
FROM awscc.cloud_control.resources WHERE data__TypeName = 'AWS::Neptune::DBCluster'
AND region = 'us-east-1'
db_cluster:
Expand All @@ -317,11 +317,11 @@ components:
JSON_EXTRACT(Properties, '$.AvailabilityZones') as availability_zones,
JSON_EXTRACT(Properties, '$.BackupRetentionPeriod') as backup_retention_period,
JSON_EXTRACT(Properties, '$.CopyTagsToSnapshot') as copy_tags_to_snapshot,
JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as d_bcluster_identifier,
JSON_EXTRACT(Properties, '$.DBClusterParameterGroupName') as d_bcluster_parameter_group_name,
JSON_EXTRACT(Properties, '$.DBInstanceParameterGroupName') as d_binstance_parameter_group_name,
JSON_EXTRACT(Properties, '$.DBPort') as d_bport,
JSON_EXTRACT(Properties, '$.DBSubnetGroupName') as d_bsubnet_group_name,
JSON_EXTRACT(Properties, '$.DBClusterIdentifier') as dbcluster_identifier,
JSON_EXTRACT(Properties, '$.DBClusterParameterGroupName') as dbcluster_parameter_group_name,
JSON_EXTRACT(Properties, '$.DBInstanceParameterGroupName') as dbinstance_parameter_group_name,
JSON_EXTRACT(Properties, '$.DBPort') as dbport,
JSON_EXTRACT(Properties, '$.DBSubnetGroupName') as dbsubnet_group_name,
JSON_EXTRACT(Properties, '$.DeletionProtection') as deletion_protection,
JSON_EXTRACT(Properties, '$.EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports,
JSON_EXTRACT(Properties, '$.EngineVersion') as engine_version,
Expand Down Expand Up @@ -354,11 +354,11 @@ components:
json_extract_path_text(Properties, 'AvailabilityZones') as availability_zones,
json_extract_path_text(Properties, 'BackupRetentionPeriod') as backup_retention_period,
json_extract_path_text(Properties, 'CopyTagsToSnapshot') as copy_tags_to_snapshot,
json_extract_path_text(Properties, 'DBClusterIdentifier') as d_bcluster_identifier,
json_extract_path_text(Properties, 'DBClusterParameterGroupName') as d_bcluster_parameter_group_name,
json_extract_path_text(Properties, 'DBInstanceParameterGroupName') as d_binstance_parameter_group_name,
json_extract_path_text(Properties, 'DBPort') as d_bport,
json_extract_path_text(Properties, 'DBSubnetGroupName') as d_bsubnet_group_name,
json_extract_path_text(Properties, 'DBClusterIdentifier') as dbcluster_identifier,
json_extract_path_text(Properties, 'DBClusterParameterGroupName') as dbcluster_parameter_group_name,
json_extract_path_text(Properties, 'DBInstanceParameterGroupName') as dbinstance_parameter_group_name,
json_extract_path_text(Properties, 'DBPort') as dbport,
json_extract_path_text(Properties, 'DBSubnetGroupName') as dbsubnet_group_name,
json_extract_path_text(Properties, 'DeletionProtection') as deletion_protection,
json_extract_path_text(Properties, 'EnableCloudwatchLogsExports') as enable_cloudwatch_logs_exports,
json_extract_path_text(Properties, 'EngineVersion') as engine_version,
Expand Down
Loading
Loading