Skip to content

Commit c7e03cc

Browse files
authored
Merge pull request #31 from asha-gadde/topic-release
<changes in readme file>
2 parents 5c5f42a + 0c5c228 commit c7e03cc

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ If an AMI with the pre-requisites has been shared with you, you can skip this se
6969

7070
You can create the AMI with pre-requisites yourself by following these steps:
7171
- Install packer
72-
- Create a Role and attach a policy which permits ECR and EC2 actions and Replace it in builders section
7372
- Export AWS Access Keys and Secret Keys
7473
- export AWS_ACCESS_KEY_ID="your_Access_Key"
7574
- export AWS_SECRET_ACCESS_KEY="your_Secret_Key"
7675
- export AWS_DEFAULT_REGION="Your_Region"
77-
- Download dump.tar.gz to your local rdeploy folder from s3://rg-deployment-docs
78-
- Run packer build package-rg.json.
76+
- Clone this repo on a machine.
77+
- Create a Role and attach a policy which permits ECR and EC2 actions and Replace the "iam-instance_profile" :"<your_rolename>" in builders section which is in the packer-rg.json.
78+
- Run packer build packer-rg.json
7979
- packer build -var 'awsRegion=your_region' -var 'vpcId=your_VPCID' -var 'subnetId=your_SubnetID' packer-rg.json
8080
- At Run time pass VPCID, SubnetID, AWSRegion as variables declared in packer-rg.json
8181
- Note that AMI id from the output

packer-rg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
{
4646
"type": "file",
47-
"source": "dump.tar.gz",
47+
"source": "dump",
4848
"destination": "{{user `RG_SRC`}}/"
4949
},
5050
{

provisioners/provision-rg.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ sudo cp ${RG_SRC}/nginx.conf ${RG_HOME}
1111
sudo echo -e "RG_HOME='/opt/deploy/sp2'\n" >> sudo /etc/environment
1212
cd ${RG_SRC}
1313
sudo tar -czf config.tar.gz config
14+
sudo zip dump.zip dump/*

0 commit comments

Comments
 (0)