From c8ab9320263b9c7c90b9d74bdadd753d0d5544ca Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 27 Jan 2025 14:02:06 +1100 Subject: [PATCH 1/4] aws updates --- .../v00.00.00000/services/cloud_control.yaml | 119 ++++++++++++++++++ .../aws/v00.00.00000/services/ec2_native.yaml | 66 +++++----- 2 files changed, 150 insertions(+), 35 deletions(-) diff --git a/providers/src/aws/v00.00.00000/services/cloud_control.yaml b/providers/src/aws/v00.00.00000/services/cloud_control.yaml index e91de1b5..abb4a24d 100644 --- a/providers/src/aws/v00.00.00000/services/cloud_control.yaml +++ b/providers/src/aws/v00.00.00000/services/cloud_control.yaml @@ -654,6 +654,125 @@ components: - $ref: '#/components/x-stackQL-resources/resource_requests/methods/list_resource_requests' update: [] title: resource_requests + vw_successful_requests: + name: vw_successful_requests + id: aws.cloud_control.vw_successful_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["SUCCESS"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["SUCCESS"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + vw_failed_requests: + name: vw_failed_requests + id: aws.cloud_control.vw_failed_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["FAILED"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["FAILED"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + vw_cancelled_requests: + name: vw_cancelled_requests + id: aws.cloud_control.vw_cancelled_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + vw_pending_requests: + name: vw_pending_requests + id: aws.cloud_control.vw_pending_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS"], "Operations": ["CREATE", "UPDATE", "DELETE"]}' + and region = 'us-east-1' + vw_create_requests: + name: vw_create_requests + id: aws.cloud_control.vw_create_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["CREATE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["CREATE"]}' + and region = 'us-east-1' + vw_update_requests: + name: vw_update_requests + id: aws.cloud_control.vw_update_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["UPDATE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["UPDATE"]}' + and region = 'us-east-1' + vw_delete_requests: + name: vw_delete_requests + id: aws.cloud_control.vw_delete_requests + config: + views: + select: + predicate: sqlDialect == "sqlite3" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["DELETE"]}' + and region = 'us-east-1' + fallback: + predicate: sqlDialect == "postgres" + ddl: |- + select * from aws.cloud_control.resource_requests + where data__ResourceRequestStatusFilter = '{"OperationStatuses": ["PENDING", "IN_PROGRESS", "SUCCESS", "FAILED", "CANCEL_IN_PROGRESS", "CANCEL_COMPLETE"], "Operations": ["DELETE"]}' + and region = 'us-east-1' parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 diff --git a/providers/src/aws/v00.00.00000/services/ec2_native.yaml b/providers/src/aws/v00.00.00000/services/ec2_native.yaml index 96f7d17c..3ca3acfa 100644 --- a/providers/src/aws/v00.00.00000/services/ec2_native.yaml +++ b/providers/src/aws/v00.00.00000/services/ec2_native.yaml @@ -42433,64 +42433,61 @@ components: instances: name: instances methods: - instance_Bundle: + bundle: operation: $ref: '#/paths/~1?Action=BundleInstance&Version=2016-11-15/get' response: mediaType: text/xml openAPIDocKey: '200' - instance_Import: + import: operation: $ref: '#/paths/~1?Action=ImportInstance&Version=2016-11-15/get' response: mediaType: text/xml openAPIDocKey: '200' - instances_Describe: + describe: operation: $ref: '#/paths/~1?Action=DescribeInstances&Version=2016-11-15/get' response: mediaType: text/xml objectKey: /*/reservationSet/item/instancesSet/item openAPIDocKey: '200' - instances_Monitor: + monitor: operation: $ref: '#/paths/~1?Action=MonitorInstances&Version=2016-11-15/get' response: mediaType: text/xml openAPIDocKey: '200' - instances_Reboot: + reboot: operation: $ref: '#/paths/~1?Action=RebootInstances&Version=2016-11-15/get' response: openAPIDocKey: '200' - instances_Run: + run: operation: $ref: '#/paths/~1?Action=RunInstances&Version=2016-11-15/get' response: mediaType: text/xml openAPIDocKey: '200' - instances_Start: + start: operation: $ref: '#/paths/~1?Action=StartInstances&Version=2016-11-15/get' - # request: - # mediaType: text/xml - # xmlRootAnnotation: 'xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"' response: mediaType: text/xml openAPIDocKey: '200' - instances_Stop: + stop: operation: $ref: '#/paths/~1?Action=StopInstances&Version=2016-11-15/get' response: mediaType: text/xml openAPIDocKey: '200' - instances_Terminate: + terminate: operation: $ref: '#/paths/~1?Action=TerminateInstances&Version=2016-11-15/get' response: mediaType: text/xml openAPIDocKey: '200' - instances_Unmonitor: + unmonitor: operation: $ref: '#/paths/~1?Action=UnmonitorInstances&Version=2016-11-15/get' response: @@ -42501,29 +42498,28 @@ components: delete: [] insert: [] select: - - $ref: '#/components/x-stackQL-resources/instances/methods/instances_Describe' - update: - - $ref: '#/components/x-stackQL-resources/instances/methods/instances_Start' - instances_start: - name: instances_start - methods: - instances_Start: - operation: - $ref: '#/paths/~1?Action=StartInstances&Version=2016-11-15/get' - # request: - # mediaType: text/xml - # xmlRootAnnotation: 'xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"' - response: - mediaType: text/xml - openAPIDocKey: '200' - id: aws.ec2_native.instances - sqlVerbs: - delete: [] - insert: - - $ref: '#/components/x-stackQL-resources/instances/methods/instances_Start' - select: [] + - $ref: '#/components/x-stackQL-resources/instances/methods/describe' update: [] - title: instances_Start + # instances_start: + # name: instances_start + # methods: + # instances_Start: + # operation: + # $ref: '#/paths/~1?Action=StartInstances&Version=2016-11-15/get' + # # request: + # # mediaType: text/xml + # # xmlRootAnnotation: 'xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"' + # response: + # mediaType: text/xml + # openAPIDocKey: '200' + # id: aws.ec2_native.instances + # sqlVerbs: + # delete: [] + # insert: + # - $ref: '#/components/x-stackQL-resources/instances/methods/instances_Start' + # select: [] + # update: [] + # title: instances_Start internet_gateways: name: internet_gateways methods: From a934c9437c2aacaf45e663480cf80f448b64ffed Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 27 Jan 2025 14:30:21 +1100 Subject: [PATCH 2/4] updated aws and deno deploy --- .github/workflows/main.yml | 2 +- providers/src/aws/v00.00.00000/services/ec2_native.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e45438c2..f9fe6277 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -179,7 +179,7 @@ jobs: - name: "[DEPLOY] deploy to deno deploy (dev)" if: env.REG_TARGET_BRANCH == 'dev' && env.REG_EVENT == 'push' - uses: denoland/deployctl@v1 + uses: denoland/deployctl@1.13.1 with: project: ${{ env.REG_DENO_DEPLOY_API_DEV }} entrypoint: index.ts diff --git a/providers/src/aws/v00.00.00000/services/ec2_native.yaml b/providers/src/aws/v00.00.00000/services/ec2_native.yaml index 3ca3acfa..0782e5ce 100644 --- a/providers/src/aws/v00.00.00000/services/ec2_native.yaml +++ b/providers/src/aws/v00.00.00000/services/ec2_native.yaml @@ -3,7 +3,8 @@ info: version: '2016-11-15' x-release: v4 title: ec2_native - description: 'Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the Amazon Web Services Cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the Amazon Web Services Cloud where you can launch Amazon Web Services resources in a virtual network that you''ve defined. Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available and reliable storage volumes that can be attached to any running instance and used like a hard drive.

To learn more, see the following resources:

' + # description: 'Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the Amazon Web Services Cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the Amazon Web Services Cloud where you can launch Amazon Web Services resources in a virtual network that you''ve defined. Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available and reliable storage volumes that can be attached to any running instance and used like a hard drive.

To learn more, see the following resources:

' + description: "Native EC2 API operations" x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' From 444992c19d054e04d4487ed200e7fb4e6c04aadb Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 27 Jan 2025 15:04:25 +1100 Subject: [PATCH 3/4] aws updates --- providers/src/aws/v00.00.00000/services/ec2_native.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/src/aws/v00.00.00000/services/ec2_native.yaml b/providers/src/aws/v00.00.00000/services/ec2_native.yaml index 0782e5ce..9191566d 100644 --- a/providers/src/aws/v00.00.00000/services/ec2_native.yaml +++ b/providers/src/aws/v00.00.00000/services/ec2_native.yaml @@ -4,7 +4,7 @@ info: x-release: v4 title: ec2_native # description: 'Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the Amazon Web Services Cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the Amazon Web Services Cloud where you can launch Amazon Web Services resources in a virtual network that you''ve defined. Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available and reliable storage volumes that can be attached to any running instance and used like a hard drive.

To learn more, see the following resources:

' - description: "Native EC2 API operations" + description: Native EC2 API operations x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' From 0129e92d9168a589930d88905563963ab60212c7 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 27 Jan 2025 15:12:16 +1100 Subject: [PATCH 4/4] aws updates --- providers/src/aws/v00.00.00000/services/ec2_native.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/src/aws/v00.00.00000/services/ec2_native.yaml b/providers/src/aws/v00.00.00000/services/ec2_native.yaml index 9191566d..0782e5ce 100644 --- a/providers/src/aws/v00.00.00000/services/ec2_native.yaml +++ b/providers/src/aws/v00.00.00000/services/ec2_native.yaml @@ -4,7 +4,7 @@ info: x-release: v4 title: ec2_native # description: 'Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the Amazon Web Services Cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the Amazon Web Services Cloud where you can launch Amazon Web Services resources in a virtual network that you''ve defined. Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available and reliable storage volumes that can be attached to any running instance and used like a hard drive.

To learn more, see the following resources:

' - description: Native EC2 API operations + description: "Native EC2 API operations" x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF'