Deploying RDS Custom for Oracle with Amazon CloudFormation
Automate your RDS Custom for Oracle deployment using the provided Amazon CloudFormation template. Complete the following prerequisites before deploying the resources.
Prerequisites
Download required Oracle files
You need specific Oracle installation files before you can create the Amazon CloudFormationtemplate. Download these files before you deploy.
-
Navigate to Oracle Database 19c (19.3)
-
Locate and download the file
LINUX.X64_193000_db_home.zip
-
Rename the file to
V982063-01.zip
-
Download the remaining patches, selecting Platform or Language as
Linux x86-64
Latest OPatch utility
January 2023 PSU Patches
Database PSU & RU Patches
Additional Required Patches
April 2023 PSU Patches
Database PSU & RU Patches
Additional Required Patches
Amazon S3 bucket setup
Create an Amazon S3 bucket in your Amazon Web Services account, or choose an existing bucket.
-
Create a folder structure in the bucket similar to example below.
<bucket-name>/ └── oracle_cev/ ├── V982063-01.zip ├── p6880880_190000_Linux-x86-64.zip ├── p34765931_190000_Linux-x86-64.zip ├── p34786990_190000_Linux-x86-64.zip ├── p35099667_190000_Linux-x86-64.zip ├── p35099674_190000_Generic.zip ├── p28730253_190000_Linux-x86-64.zip ├── p29213893_1918000DBRU_Generic.zip ├── p35012866_1918000DBRU_Linux-x86-64.zip ├── p35042068_190000_Linux-x86-64.zip ├── p35050341_190000_Linux-x86-64.zip ├── p29213893_1919000DBRU_Generic.zip ├── p33125873_1919000DBRU_Linux-x86-64.zip ├── p35220732_190000_Linux-x86-64.zip └── p35239280_190000_Generic.zip
Upload all of Oracle files that you previously downloaded to the appropriate folders.
Deploy RDS Custom for Oracle using Amazon CloudFormation
Step 1: Prepare the Amazon CloudFormation template
Before you can deploy RDS Custom for Oracle, you need to download and configure the Amazon CloudFormation template that creates the necessary prerequisites.
Copy and save the template
-
Go to Deploying RDS Custom for Oracle with single and multiple Availability Zones
-
Copy the template in your preferred format (YAML or JSON)
-
Save the file in YAML or JSON format. For example,
rds-custom-oracle-prereqs.yaml
Launch the stack in the Amazon console
Open the Amazon Console and navigate to Amazon CloudFormation
Choose Create stack > With new resources (standard)
-
Select Choose an existing template
-
Select Upload a template file > Choose file
-
Select the template file you previously downloaded
Keep the default parameter values
Select Next to create the stack
Alternative: Using Amazon CLI
Instead of using the console, you can create the stack using the Amazon CLI:
aws cloudformation create-stack \ --stack-name rds-custom-oracle \ --template-body file://rds-custom-oracle-prereqs.yaml \ --capabilities CAPABILITY_NAMED_IAM
Step 2: Create the Custom Engine Versions (CEVs) and Amazon RDS instances
Copy and save the template
-
Go to Deploying RDS Custom for Oracle with single and multiple Availability Zones
-
Copy the template in your preferred format (YAML or JSON)
-
Update the following parameters in the template if needed:
BucketName
CEVS3Prefix
Database master password (replace *************)
-
Save the file in YAML or JSON format
Step 3: Deploy using the Amazon console
-
Open the Amazon Console and navigate to Amazon CloudFormation
-
Choose Create stack > With new resources (standard)
-
Select Choose an existing template
-
Select Upload a template file > Choose file
-
Select the template file you previously downloaded
-
Leave the parameters as default values
-
Fill in the parameters as follows:
BucketName:
rds-custom-id
CEVS3Prefix: oracle_cev CEVCreation: Yes Review the configuration and select Next to create the stack
Optional: Deploy Using Amazon CLI
aws cloudformation create-stack \ --stack-name rds-custom-oracle \ --template-body file://rds-custom-oracle.yaml \ --parameters \ ParameterKey=BucketName,ParameterValue=rds-custom-id \ ParameterKey=CEVS3Prefix,ParameterValue=oracle_cev \ ParameterKey=CEVCreation,ParameterValue=Yes \ --capabilities CAPABILITY_NAMED_IAM
Deployment resources created
The template creates the following resources:
Amazon VPC with public and private subnets
Security groups
Amazon VPC endpoints
IAM roles and policies
Amazon KMS key for encryption
Custom Engine Versions (CEVs)
RDS Custom for Oracle instances for both single-AZ and multi-AZ configurations
Monitor your deployment progress
After you create the Amazon CloudFormation stack, monitor its progress to ensure successful deployment. The deployment process includes creating Custom Engine Versions (CEVs) and RDS instances.
To monitor deployment progress:
Open the Amazon CloudFormation console.
Choose your stack name.
Choose the Events tab to view progress and identify any errors.
Note
CEV creation typically requires 2-3 hours. After CEV creation completes successfully, Amazon RDS automatically begins creating the Amazon RDS instance.
Post-Deployment
After the stack creation process completes, perform the following post-deployment verification and configuration steps:
From the Amazon RDS console page, navigate to Custom engine versions to verify CEV creation.
Confirm Amazon RDS instances are created and available
Test connectivity to the Amazon RDS instances
Set up monitoring and backup strategies as needed
Cleanup
To remove all resources, run the following Amazon CLI command:
aws cloudformation delete-stack --stack-name rds-custom-oracle
Troubleshooting
If you encounter issues during deployment, use the following solutions to resolve common problems.
- CEV creation fails
-
Verify all required patches are uploaded to Amazon S3
Check IAM permissions
Verify the patch versions are correct; see the Prerequisites for the list of required patches.
- Amazon RDS instance creation fails
-
Check VPC/subnet configurations
Verify security group rules
Confirm CEV is available