Skip to content

Commit

Permalink
Update config.yml | Remove duplocate server_access
Browse files Browse the repository at this point in the history
  • Loading branch information
Balamuruganjeevi authored May 16, 2024
1 parent c790729 commit b61cbdb
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,43 +43,6 @@ commands:
VAULT_PASSWORD_FILE=~/.vault-pass.txt app_zip_path=~/artifacts/ make deploy-int-server-<< parameters.env >>
- run: rm ~/.vault-pass.txt
setup_server_access:
description: Generate and copy temporary keys to server
parameters:
instance-id:
type: string
os-user:
type: string
default: ubuntu
availability-zone:
type: string
default: ap-south-1a
steps:
- run: rm -rf /tmp/temp_rsa_key*
- run: ssh-keygen -b 2048 -t rsa -f /tmp/temp_rsa_key -q -N ""
- run: eval `ssh-agent -s`
- run: ssh-add /tmp/temp_rsa_key
- run: |
aws ec2-instance-connect send-ssh-public-key --instance-id << parameters.instance-id >> --availability-zone << parameters.availability-zone >> --instance-os-user << parameters.os-user >> --no-paginate --ssh-public-key file:///tmp/temp_rsa_key.pub --output text | head -1
setup_server_access:
description: Generate and copy temporary keys to server
parameters:
instance-id:
type: string
os-user:
type: string
default: ubuntu
availability-zone:
type: string
default: ap-south-1a
steps:
- run: rm -rf /tmp/temp_rsa_key*
- run: ssh-keygen -b 2048 -t rsa -f /tmp/temp_rsa_key -q -N ""
- run: eval `ssh-agent -s`
- run: ssh-add /tmp/temp_rsa_key
- run: |
aws ec2-instance-connect send-ssh-public-key --instance-id << parameters.instance-id >> --availability-zone << parameters.availability-zone >> --instance-os-user << parameters.os-user >> --no-paginate --ssh-public-key file:///tmp/temp_rsa_key.pub --output text | head -1

setup_server_access:
description: Generate and copy temporary keys to server
Expand Down

0 comments on commit b61cbdb

Please sign in to comment.