Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 1608219

Browse files
committed
chore: comment
1 parent a6eaccd commit 1608219

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

builtin/aws/lambda/releaser.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,8 @@ func (r *Releaser) resourceFunctionUrlCreate(
118118
}
119119
log.Info("Created permission", "permission", *p.Statement)
120120

121-
// https://us-east-1.console.aws.amazon.com/lambda/services/ajax?operation=createFunctionUrlConfig&locale=en
122121
o, err := lambdasrv.CreateFunctionUrlConfig(&lambda.CreateFunctionUrlConfigInput{
123-
// When you choose auth type NONE, Lambda [DASHBOARD OPERATION ONLY] automatically creates the
124-
// following resource-based policy and attaches it to your function.
125-
// This policy makes your function public to anyone with the function URL.
126-
// You can edit the policy later. To limit access to authenticated IAM users and roles, choose auth type AWS_IAM.
122+
// Todo: make AuthType configurable via HCL
127123
AuthType: aws.String(lambda.FunctionUrlAuthTypeNone),
128124
FunctionName: a.AliasArn,
129125
Cors: &lambda.Cors{},
@@ -143,7 +139,6 @@ func (r *Releaser) resourceFunctionUrlDestroy(
143139
ctx context.Context,
144140
sess *session.Session,
145141
sg terminal.StepGroup,
146-
// state *Resource_LoadBalancer,
147142
) error {
148143
step := sg.Add("Destroying Lambda URL...")
149144
step.Update("Destroyed Lambda URL...")

0 commit comments

Comments
 (0)