aws-ia / cfn-ps-red-hat-rhel-with-ha Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
The documentation in the HA guide for AWS refers to the resource implemented with 'ha_listener' as 'awsvip'. Renaming the 'ha_listener' resource to 'awsvip' provides parity in terminology.
Need example parameter.json file that can be used with template from awscli to launch template. Example file should have the same defaults as the gui.
An example command for launching the template from the awscli using the parameters file would be very helpful.
If the stack fails after the node deployment was started, Rollback is going to fail because of files that are already exist in the HostnameBucket.
Error Message:
The bucket you tried to delete is not empty (Service: Amazon S3; Status Code: 409; Error Code: BucketNotEmpty; Request ID: CBJYB02DFS1Y1S3N; S3 Extended Request ID: q8Po2RMqNsRHimkENINkH+AyC/bBAyV7alDl/9zlUx2X9lpuzne8/4YHeVnmQc/JT3rna7sztiE=; Proxy: null)
Bucket:
Files:
Affected file(s):
templates/main.template.yaml
Reference to HostnameBucket
is passed to every NodeStack as BucketName
(firstnode, lastnode, extranode1, extranode2). Hostname Upload is part of:
./templates/lastnode.template.yaml: "/upload_hostname.py":
./templates/lastnode.template.yaml: - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/firstnode.template.yaml: "/upload_hostname.py":
./templates/firstnode.template.yaml: - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/firstnode.template.yaml: command: !Sub "sudo python3 upload_hostname.py ${BucketName} node1 ${AWS::Region}" # add parameter that passes in which node it is
./templates/extranode2.template.yaml: "/upload_hostname.py":
./templates/extranode2.template.yaml: - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/extranode2.template.yaml: command: !Sub "sudo python3 upload_hostname.py ${BucketName} node3 ${AWS::Region}"
./templates/extranode1.template.yaml: "/upload_hostname.py":
./templates/extranode1.template.yaml: - https://${S3Bucket}.s3.${S3Region}.${AWS::URLSuffix}/${QSS3KeyPrefix}scripts/upload_hostname.py
./templates/extranode1.template.yaml: command: !Sub "sudo python3 upload_hostname.py ${BucketName} node2 ${AWS::Region}"
To make the Stack more reliable in case of a issue during deployment, we might need an additional step to empty S3 buckets first to avoid such issues.
Manual Cleanup:
aws s3 rm s3://tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj --recursive
delete: s3://tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj/hostnames/ip-10-0-22-168.ec2.internal+node1
delete: s3://tcat-quickstart-rhel-with-ha-defau-hostnamebucket-1xmfh1ojj60fj/hostnames/ip-10-0-84-123.ec2.internal+node2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.