Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ vsi_boot_snapshot_id | string | Required | The ID of an existing boot snapshot.
| |
security_group_id | string | Optional | The security group identifier to use. If not specified, IBM packer plugin creates a new temporary security group to allow SSH and WinRM access.
| |
skip_create_default_security_group_rule | boolean | Optional | By default, the IBM Packer plugin creates security group rules to allow SSH and WinRM access. Set this to `true` if the security group already has the required access rules configured and you want to skip automatic rule creation.
| OR |
security_group_rule_remote_cidr | array of string | Optional | The remote CIDR block from which this rule will allow traffic.
| OR |
security_group_rule_remote_address | array of string | Optional | The remote ip address from which this rule will allow traffic.
| OR |
security_group_rule_remote_id | array of string | Optional | The remote security group id from which this rule will allow traffic.
| |
vsi_profile | string | Required | The profile this VSI uses.
vsi_interface | string | Optional | Set it as "public" to create a Floating IP to connect to the temp VSI. Set it as "private" to use private interface to connect to the temp VSI. Later seeks the private IP under the VPC.
| |
Expand Down
6 changes: 6 additions & 0 deletions builder/ibmcloud/vpc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ type Config struct {
ImageName string `mapstructure:"image_name"`
ImageTags []string `mapstructure:"tags"`

// Security Group Rule Configuration
SkipCreateDefaultSecurityGroupRule bool `mapstructure:"skip_create_default_security_group_rule"`
SecurityGroupRuleRemoteCIDR []string `mapstructure:"security_group_rule_remote_cidr"`
SecurityGroupRuleRemoteAddress []string `mapstructure:"security_group_rule_remote_address"`
SecurityGroupRuleRemoteID []string `mapstructure:"security_group_rule_remote_id"`

VSIName string `mapstructure-to-hcl2:",skip"`
VpcSshKeyName string `mapstructure-to-hcl2:",skip"`
SecurityGroupName string `mapstructure-to-hcl2:",skip"`
Expand Down
Loading
Loading