-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathconfig.go
25 lines (20 loc) · 915 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//go:generate packer-sdc mapstructure-to-hcl2 -type Config,AssumeRoleConfig
package main
import (
"github.com/hashicorp/packer-plugin-sdk/common"
"github.com/hashicorp/packer-plugin-sdk/template/interpolate"
)
// Config is a post-processor's configuration
// PostProcessor generates it using Packer's configuration in `Configure()` method
type Config struct {
common.PackerConfig `mapstructure:",squash"`
AccessConfig `mapstructure:",squash"`
Identifier string `mapstructure:"identifier"`
KeepReleases int `mapstructure:"keep_releases"`
KeepDays int `mapstructure:"keep_days"`
ResolveAliases bool `mapstructure:"resolve_aliases"`
Regions []string `mapstructure:"regions"`
DryRun bool `mapstructure:"dry_run"`
Tags map[string]string `mapstructure:"tags"`
ctx interpolate.Context
}