Deployment process for FlashGrid Cluster in AWS China regions is essentially same as in a regular AWS region. However, some additional configuration items are required for deployments in AWS China regions as described further in this article.
Steps for Deploying a Cluster
- Copy FlashGrid AMI to China Region according to the process described below and get new AMI ID.
- Create an S3 bucket for Oracle files and IAM role named "GetOracleFilesFromS3" according to the instructions in the article Uploading Oracle Installation Files to S3
- Follow the steps 1-4 in section 3 of the AWS Deployment Guide.
- On the Launch page of FlashGrid Launcher, click on the link in "To download the CloudFormation template without opening CloudFormation Manager click here" and save the downloaded ZIP file.
- Unzip the downloaded file.
- Upload all unzipped .sh files to the same S3 bucket created in step 2.
- Open AWS CloudFormation console.
- Click "Create Stack".
- In the "Specify Template" section check "Upload a template file" then click "Choose File" to upload the .cf file from the unzipped files.
- Click "Next".
- Set your AMI ID in the AMI field
- Follow the rest of the steps starting with step 7 in section 3 of the Deployment Guide.
Process to copy AMI to China AWS regions
- Request FlashGrid support for access to a FlashGrid AMI for your preferred OS
- Download AMI bin file `<AMI-ID.bin>` from the s3 bucket provided by FlashGrid support
-
Copy <AMI-ID.bin> to your S3 bucket in the China region.
Example:
$ aws s3 cp ami-09d022f061c6d0188.bin s3://your-s3-bucket --profile cn-north-1 upload: ./ami-09d022f061c6d0188.bin to s3://your-s3-bucket/ami-09d022f061c6d0188.bin -
Restore AMI and get the new image ID
$ aws ec2 create-restore-image-task --object-key <AMI-ID.bin> --bucket your-s3-bucket --name "<AMI name>"The new AMI ID should be in the output.
Example:
$ aws ec2 create-restore-image-task --profile cn-north-1 --object-key ami-09d022f061c6d0188.bin --bucket your-s3-bucket --name "FlashGrid RH8-23.02 AMI" { "ImageId": "ami-00099871e91b8cc94" } - Use this new AMI ID to create clusters in China