From 5a600a18cac5307d48cf17fd4734a23f1a4c61e6 Mon Sep 17 00:00:00 2001 From: Yevgeniy Brikman Date: Fri, 31 May 2024 19:35:27 -0400 Subject: [PATCH] Ch 1-3 edit pass --- ch3/ansible/roles/nodejs-app/tasks/main.yml | 6 +- ch3/tofu/modules/lambda/outputs.tf | 4 + docs/02.html | 130 +-- docs/03.html | 130 +-- docs/04.html | 1020 +++++++++---------- docs/05.html | 176 ++-- docs/06.html | 156 +-- docs/07.html | 2 +- docs/08.html | 2 +- docs/09.html | 2 +- docs/10.html | 2 +- docs/11.html | 2 +- docs/12.html | 2 +- docs/13-footnotes.html | 82 +- docs/index.html | 126 ++- 15 files changed, 906 insertions(+), 936 deletions(-) diff --git a/ch3/ansible/roles/nodejs-app/tasks/main.yml b/ch3/ansible/roles/nodejs-app/tasks/main.yml index b134d09..11df3a5 100644 --- a/ch3/ansible/roles/nodejs-app/tasks/main.yml +++ b/ch3/ansible/roles/nodejs-app/tasks/main.yml @@ -1,15 +1,15 @@ -- name: Add Node packages to yum +- name: Add Node packages to yum shell: curl -fsSL https://rpm.nodesource.com/setup_21.x | bash - - name: Install Node.js yum: name: nodejs -- name: Create app user +- name: Create app user user: name: app-user -- name: Install pm2 +- name: Install pm2 npm: name: pm2 version: latest diff --git a/ch3/tofu/modules/lambda/outputs.tf b/ch3/tofu/modules/lambda/outputs.tf index 0313e21..9b6556d 100644 --- a/ch3/tofu/modules/lambda/outputs.tf +++ b/ch3/tofu/modules/lambda/outputs.tf @@ -1,3 +1,7 @@ output "function_arn" { value = aws_lambda_function.function.arn +} + +output "iam_role_arn" { + value = aws_iam_role.lambda.arn } \ No newline at end of file diff --git a/docs/02.html b/docs/02.html index a42e0c1..e2b7a43 100644 --- a/docs/02.html +++ b/docs/02.html @@ -921,41 +921,39 @@