customdb_engine_versions
Creates, updates, deletes or gets a customdb_engine_version
resource or lists customdb_engine_versions
in a region
Overview
Name | customdb_engine_versions |
Type | Resource |
Description | The AWS::RDS::CustomDBEngineVersion resource creates an Amazon RDS custom DB engine version. |
Id | aws.rds.customdb_engine_versions |
Fields
Name | Datatype | Description |
---|---|---|
database_installation_files_s3_bucket_name | string | The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid bucket name is `my-custom-installation-files`. |
database_installation_files_s3_prefix | string | The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket name is `123456789012/cev1`. If this setting isn't specified, no prefix is assumed. |
description | string | An optional description of your CEV. |
engine | string | The database engine to use for your custom engine version (CEV). The only supported value is `custom-oracle-ee`. |
engine_version | string | The name of your CEV. The name format is 19.customized_string . For example, a valid name is 19.my_cev1. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The combination of Engine and EngineVersion is unique per customer per Region. |
kms_key_id | string | The AWS KMS key identifier for an encrypted CEV. A symmetric KMS key is required for RDS Custom, but optional for Amazon RDS. |
manifest | string | The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which they are listed. |
db_engine_version_arn | string | The ARN of the custom engine version. |
source_custom_db_engine_version_identifier | string | The identifier of the source custom engine version. |
use_aws_provided_latest_image | boolean | A value that indicates whether AWS provided latest image is applied automatically to the Custom Engine Version. By default, AWS provided latest image is applied automatically. This value is only applied on create. |
image_id | string | The identifier of Amazon Machine Image (AMI) used for CEV. |
status | string | The availability status to be assigned to the CEV. |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Engine, EngineVersion, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all customdb_engine_versions
in a region.
SELECT
region,
database_installation_files_s3_bucket_name,
database_installation_files_s3_prefix,
description,
engine,
engine_version,
kms_key_id,
manifest,
db_engine_version_arn,
source_custom_db_engine_version_identifier,
use_aws_provided_latest_image,
image_id,
status,
tags
FROM aws.rds.customdb_engine_versions
WHERE region = 'us-east-1';
Gets all properties from an individual customdb_engine_version
.
SELECT
region,
database_installation_files_s3_bucket_name,
database_installation_files_s3_prefix,
description,
engine,
engine_version,
kms_key_id,
manifest,
db_engine_version_arn,
source_custom_db_engine_version_identifier,
use_aws_provided_latest_image,
image_id,
status,
tags
FROM aws.rds.customdb_engine_versions
WHERE region = 'us-east-1' AND data__Identifier = '<Engine>|<EngineVersion>';
INSERT
example
Use the following StackQL query and manifest file to create a new customdb_engine_version
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.rds.customdb_engine_versions (
Engine,
EngineVersion,
region
)
SELECT
'{{ Engine }}',
'{{ EngineVersion }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.rds.customdb_engine_versions (
DatabaseInstallationFilesS3BucketName,
DatabaseInstallationFilesS3Prefix,
Description,
Engine,
EngineVersion,
KMSKeyId,
Manifest,
SourceCustomDbEngineVersionIdentifier,
UseAwsProvidedLatestImage,
ImageId,
Status,
Tags,
region
)
SELECT
'{{ DatabaseInstallationFilesS3BucketName }}',
'{{ DatabaseInstallationFilesS3Prefix }}',
'{{ Description }}',
'{{ Engine }}',
'{{ EngineVersion }}',
'{{ KMSKeyId }}',
'{{ Manifest }}',
'{{ SourceCustomDbEngineVersionIdentifier }}',
'{{ UseAwsProvidedLatestImage }}',
'{{ ImageId }}',
'{{ Status }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: customdb_engine_version
props:
- name: DatabaseInstallationFilesS3BucketName
value: '{{ DatabaseInstallationFilesS3BucketName }}'
- name: DatabaseInstallationFilesS3Prefix
value: '{{ DatabaseInstallationFilesS3Prefix }}'
- name: Description
value: '{{ Description }}'
- name: Engine
value: '{{ Engine }}'
- name: EngineVersion
value: '{{ EngineVersion }}'
- name: KMSKeyId
value: '{{ KMSKeyId }}'
- name: Manifest
value: '{{ Manifest }}'
- name: SourceCustomDbEngineVersionIdentifier
value: '{{ SourceCustomDbEngineVersionIdentifier }}'
- name: UseAwsProvidedLatestImage
value: '{{ UseAwsProvidedLatestImage }}'
- name: ImageId
value: '{{ ImageId }}'
- name: Status
value: '{{ Status }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.rds.customdb_engine_versions
WHERE data__Identifier = '<Engine|EngineVersion>'
AND region = 'us-east-1';
Permissions
To operate on the customdb_engine_versions
resource, the following permissions are required:
Create
ec2:CopySnapshot,
ec2:DeleteSnapshot,
ec2:DescribeSnapshots,
kms:CreateGrant,
kms:Decrypt,
kms:DescribeKey,
kms:GenerateDataKey,
kms:ReEncrypt,
mediaimport:CreateDatabaseBinarySnapshot,
rds:AddTagsToResource,
rds:CreateCustomDBEngineVersion,
rds:DescribeDBEngineVersions,
rds:ModifyCustomDBEngineVersion,
s3:CreateBucket,
s3:GetObject,
s3:GetObjectAcl,
s3:GetObjectTagging,
s3:ListBucket,
s3:PutBucketObjectLockConfiguration,
s3:PutBucketPolicy,
s3:PutBucketVersioning
Read
rds:DescribeDBEngineVersions
Update
rds:AddTagsToResource,
rds:DescribeDBEngineVersions,
rds:ModifyCustomDBEngineVersion,
rds:RemoveTagsFromResource
Delete
rds:DeleteCustomDBEngineVersion,
rds:DescribeDBEngineVersions
List
rds:DescribeDBEngineVersions