Skip to main content

customdb_engine_versions

Creates, updates, deletes or gets a customdb_engine_version resource or lists customdb_engine_versions in a region

Overview

Namecustomdb_engine_versions
TypeResource
DescriptionCreates a custom DB engine version (CEV).
Idawscc.rds.customdb_engine_versions

Fields

NameDatatypeDescription
database_installation_files_s3_bucket_namestringThe 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_prefixstringThe 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.
descriptionstringAn optional description of your CEV.
enginestringThe database engine to use for your custom engine version (CEV).<br />Valid values:<br />+ &#96;&#96;custom-oracle-ee&#96;&#96; <br />+ &#96;&#96;custom-oracle-ee-cdb&#96;&#96;
engine_versionstringThe name of your CEV. The name format is &#96;&#96;major version.customized&#95;string&#96;&#96;. For example, a valid CEV name is &#96;&#96;19.my&#95;cev1&#96;&#96;. This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The combination of &#96;&#96;Engine&#96;&#96; and &#96;&#96;EngineVersion&#96;&#96; is unique per customer per Region.<br />&#42;Constraints:&#42; Minimum length is 1. Maximum length is 60.<br />&#42;Pattern:&#42;&#96;&#96;^&#91;a-z0-9&#95;.-&#93;&#123;1,60$&#96;&#96;&#125;
kms_key_idstringThe AWS KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for RDS Custom, but optional for Amazon RDS.<br />If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the instructions in &#91;Creating a symmetric encryption KMS key&#93;(https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html#create-symmetric-cmk) in the &#42;Key Management Service Developer Guide&#42;.<br />You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different keys.
manifeststringThe 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.<br />The following JSON fields are valid:<br />+ MediaImportTemplateVersion Version of the CEV manifest. The date is in the format YYYY-MM-DD. + databaseInstallationFileNames Ordered list of installation files for the CEV. + opatchFileNames Ordered list of OPatch installers used for the Oracle DB engine. + psuRuPatchFileNames The PSU and RU patches for this CEV. + OtherPatchFileNames The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the PSU and RU patches. <br />For more information, see &#91;Creating the CEV manifest&#93;(https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html#custom-cev.preparing.manifest) in the &#42;Amazon RDS User Guide&#42;.
db_engine_version_arnstring
source_custom_db_engine_version_identifierstringThe ARN of a CEV to use as a source for creating a new CEV. You can specify a different Amazon Machine Imagine (AMI) by using either &#96;&#96;Source&#96;&#96; or &#96;&#96;UseAwsProvidedLatestImage&#96;&#96;. You can't specify a different JSON manifest when you specify &#96;&#96;SourceCustomDbEngineVersionIdentifier&#96;&#96;.
use_aws_provided_latest_imagebooleanSpecifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV. If you specify &#96;&#96;UseAwsProvidedLatestImage&#96;&#96;, you can't also specify &#96;&#96;ImageId&#96;&#96;.
image_idstringA value that indicates the ID of the AMI.
statusstringA value that indicates the status of a custom engine version (CEV).
tagsarrayA list of tags. For more information, see &#91;Tagging Amazon RDS Resources&#93;(https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER&#95;Tagging.html) in the &#42;Amazon RDS User Guide.&#42;
regionstringAWS region.

For more information, see AWS::RDS::CustomDBEngineVersion.

Methods

NameAccessible byRequired Params
create_resourceINSERTEngine, EngineVersion, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

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 awscc.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.

/*+ create */
INSERT INTO awscc.rds.customdb_engine_versions (
Engine,
EngineVersion,
region
)
SELECT
'{{ Engine }}',
'{{ EngineVersion }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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