Skip to content

Commit

Permalink
Add user instruction (#429)
Browse files Browse the repository at this point in the history
Signed-off-by: rasel <rasel@appscode.com>
  • Loading branch information
Superm4n97 authored Jan 15, 2025
1 parent 3cf773e commit 446167a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions files/products/appscode/aws-marketplace/ace_payg_cf_amd64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Parameters:
Type: String
AllowedPattern: '^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\/(3[0-2]|[1-2]?[0-9])$'
ApplicationAccessIpCIDR:
Description: "CIDR range from where the application will be accessed. 0.0.0.0/0 is recommended to allow all IP addresses access. Set CIDR to x.x.x.x/32 to allow one specific IP address access or another CIDR range as needed."
Description: "CIDR range from where the application will be accessed. 0.0.0.0/0 is recommended to allow all IP addresses access. Set CIDR to x.x.x.x/32 to allow one specific IP address access."
Type: String
AllowedPattern: '^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\/(3[0-2]|[1-2]?[0-9])$'
KeyPair:
Expand Down Expand Up @@ -485,7 +485,7 @@ Resources:
return 0
}
update_welcome_message() {
echo 'See "/etc/ace/credentials" to get ACE system admin credentials, use this credential to login into the system as admin' >> /etc/motd
echo 'See "/etc/appscode/login.txt" to get ACE system admin credentials, use this credential to login into the system as admin' >> /etc/motd
}
generate_credentials() {
# Define character sets
Expand All @@ -497,9 +497,10 @@ Resources:
ALL="$LOWER$UPPER$NUMBERS$SPECIAL"
# Shuffle the combined characters
ADMIN_USER_PASSWORD=$(echo "$ALL" | fold -w1 | shuf | tr -d '\n')
mkdir /etc/ace
echo 'username: admin' >> /etc/ace/credentials
echo 'password: '$ADMIN_USER_PASSWORD >> /etc/ace/credentials
mkdir /etc/appscode
echo 'Visit URL: https://'$PUBLIC_IP >> /etc/appscode/login.txt
echo 'Username: admin' >> /etc/appscode/login.txt
echo 'Password: '$ADMIN_USER_PASSWORD >> /etc/appscode/login.txt
}
create_k3s() {
echo 'fs.inotify.max_user_instances=100000' | sudo tee -a /etc/sysctl.conf
Expand Down Expand Up @@ -648,8 +649,8 @@ Resources:

Outputs:
SiteURL:
Description: Click this URL to explore the site
Description: Click the following URL to explore the site. Please note that it may take approximately 15 minutes for the application to be ready after the instance is created.
Value: !Join [ "", [ "https://", !GetAtt ElasticIP.PublicIp ] ]
ApplicationCredentials:
Description: System Admin credentials
Value: For Admin credentials ssh into the EC2 instance, and see the /etc/ace/credentials
Value: For Admin credentials ssh into the EC2 instance, and see the /etc/appscode/login.txt file

0 comments on commit 446167a

Please sign in to comment.