Skip to content

Commit b21d4c4

Browse files
Fix step 1
1 parent 300264b commit b21d4c4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/steps/1-step.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _Welcome to "aws-terratest-course"! :wave:_
2121
5. Go to ``infra`` folder using command: ``cd infra``.
2222
6. Initialize Terraform by command: ``terraform init``.
2323
7. Review arguments for [aws_lambda_function_url](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function_url.html) resource.
24-
8. Define ``function_name`` for resource ``aws_lambda_function_url``.
24+
8. Define ``function_name`` for resource ``aws_lambda_function_url`` and ``aws_lambda_permission``.
2525
9. Try to deploy infrastructure using command: ``terraform apply``.
2626
10. If succeeded, destroy infrastructure using command: ``terraform apply -destroy``.
2727
11. Commit changes using command: ``git commit -am "Finish step 1"``.

infra/main.tf

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ data "aws_kms_key" "lambda_kms" {
6060

6161
### Lambda URL
6262
resource "aws_lambda_function_url" "lambda_endpoint" {
63-
function_name = aws_lambda_function.lambda_func.function_name
6463
authorization_type = "AWS_IAM" # "NONE"
6564

6665
cors {

0 commit comments

Comments
 (0)