Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <[email protected]>
  • Loading branch information
konstruktoid committed Oct 9, 2023
1 parent 9124e07 commit abde7a4
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ on how to rewrite the template if you want to use it for another platforms.

### Using `packer`

#### Amazon Web Services

Requires [Packer](https://www.packer.io/) and a
[Amazon Web Services](https://aws.amazon.com/) account.

Ensure that the correct `release` and `aws_region` are set in
`ubuntu-aws-vars.json` before validating the configuration and building the
Amazon Machine Image.

```sh
packer init -upgrade -var-file ubuntu-aws-vars.json ubuntu-hardened-aws.pkr.hcl
packer validate -var-file ubuntu-aws-vars.json ubuntu-hardened-aws.pkr.hcl
packer build -timestamp-ui -var-file ubuntu-aws-vars.json ubuntu-hardened-aws.pkr.hcl
```

#### Local files

> **Note**
Expand All @@ -44,20 +59,6 @@ one.
`packer build -force -timestamp-ui -var-file <var-file> ubuntu-hardened-box.pkr.hcl`
is the `packer` command used if all files are valid.

#### Amazon Web Services

Requires [Packer](https://www.packer.io/) and a
[Amazon Web Services](https://aws.amazon.com/) account.

Ensure that the correct `release` and `aws_region` are set in
`ubuntu-aws-vars.json` before validating the configuration and building the
Amazon Machine Image.

```sh
packer validate -var-file ubuntu-aws-vars.json ubuntu-hardened-aws.pkr.hcl
packer build -timestamp-ui -var-file ubuntu-aws-vars.json ubuntu-hardened-aws.pkr.hcl
```

### Verification

There's a [SLSA](https://slsa.dev/) artifact present under the
Expand Down

0 comments on commit abde7a4

Please sign in to comment.