You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.`DO_TOKEN`, `SNAPSHOT_NAME` and `REGION` all need to be defined. A list of valid Digital Ocean regions can be found [here](https://www.digitalocean.com/docs/platform/availability-matrix/).
36
+
### For **Digital Ocean**
37
+
-`DO_TOKEN`, `SNAPSHOT_NAME` and `REGION` all need to be defined. A list of valid Digital Ocean regions can be found [here](https://www.digitalocean.com/docs/platform/availability-matrix/).
35
38
```
36
39
$ export DO_TOKEN=your_digital_ocean_token
37
40
$ export SNAPSHOT_NAME=your_snapshot_name
38
41
$ export REGION=your_chosen_region
39
42
```
40
43
41
-
3. Create the Digital Ocean snapshot
44
+
- Create the Digital Ocean snapshot
42
45
```
43
46
$ packer build \
44
47
-var "do_token=$DO_TOKEN" \
45
48
-var "name=$SNAPSHOT_NAME" \
46
49
-var "region=$REGION" \
47
-
packer.json
50
+
digitalOcean.json
51
+
```
52
+
53
+
### For **AWS**
54
+
-`AWS_ACCESS_KEY`, `AWS_SECRET_KEY`, `SNAPSHOT_NAME` and `REGION` all need to be defined. A list of valid AWS regions can be found [here](https://docs.aws.amazon.com/general/latest/gr/ec2-service.html).
55
+
```
56
+
$ export AWS_ACCESS_KEY=your_aws_access_key
57
+
$ export AWS_SECRET_KEY=your_aws_secret_key
58
+
$ export SNAPSHOT_NAME=your_snapshot_name
59
+
$ export REGION=your_chosen_region
60
+
```
61
+
62
+
- Create the AWS AMI
63
+
```
64
+
$ packer build \
65
+
-var "aws_access_key=$AWS_ACCESS_KEY" \
66
+
-var "aws_secret_key=$AWS_SECRET_KEY" \
67
+
-var "name=$SNAPSHOT_NAME" \
68
+
-var "region=$REGION" \
69
+
amazon.json
48
70
```
49
71
50
72
Once this is complete, you now have a snapshot available to use for any of your droplets.
0 commit comments