This repository was archived by the owner on Jan 8, 2024. It is now read-only.
File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,8 @@ func (r *Releaser) resourceFunctionUrlCreate(
118
118
}
119
119
log .Info ("Created permission" , "permission" , * p .Statement )
120
120
121
- // https://us-east-1.console.aws.amazon.com/lambda/services/ajax?operation=createFunctionUrlConfig&locale=en
122
121
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
127
123
AuthType : aws .String (lambda .FunctionUrlAuthTypeNone ),
128
124
FunctionName : a .AliasArn ,
129
125
Cors : & lambda.Cors {},
@@ -143,7 +139,6 @@ func (r *Releaser) resourceFunctionUrlDestroy(
143
139
ctx context.Context ,
144
140
sess * session.Session ,
145
141
sg terminal.StepGroup ,
146
- // state *Resource_LoadBalancer,
147
142
) error {
148
143
step := sg .Add ("Destroying Lambda URL..." )
149
144
step .Update ("Destroyed Lambda URL..." )
You can’t perform that action at this time.
0 commit comments