Skip to content

Commit

Permalink
Merge pull request #443 from mackee/feature/correct-diff-with-ipv6all…
Browse files Browse the repository at this point in the history
…owedfordualstack

fix: lambroll diff to ignore unchanged VpcConfig.Ipv6AllowedForDualStack values
  • Loading branch information
fujiwara authored Oct 30, 2024
2 parents edb98e5 + 9bd4eb7 commit 3308fe0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lambroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import (

var Version string

const versionLatest = "$LATEST"
const packageTypeImage = "Image"
const (
versionLatest = "$LATEST"
packageTypeImage = "Image"
)

var retryPolicy = retry.Policy{
MinDelay: time.Second,
Expand All @@ -35,8 +37,7 @@ var retryPolicy = retry.Policy{
}

// Function represents configuration of Lambda function
//type Function = lambda.CreateFunctionInput

// type Function = lambda.CreateFunctionInput
type Function = lambda.CreateFunctionInput

// Tags represents tags of function
Expand Down Expand Up @@ -307,8 +308,9 @@ func newFunctionFrom(c *types.FunctionConfiguration, code *types.FunctionCodeLoc
}
if v := c.VpcConfig; v != nil && *v.VpcId != "" {
fn.VpcConfig = &types.VpcConfig{
SubnetIds: v.SubnetIds,
SecurityGroupIds: v.SecurityGroupIds,
SubnetIds: v.SubnetIds,
SecurityGroupIds: v.SecurityGroupIds,
Ipv6AllowedForDualStack: v.Ipv6AllowedForDualStack,
}
}

Expand Down

0 comments on commit 3308fe0

Please sign in to comment.