Skip to content

Commit 16c4fcd

Browse files
committed
tweak css on pages
1 parent a6511ca commit 16c4fcd

File tree

3 files changed

+27
-42
lines changed

3 files changed

+27
-42
lines changed

content/posts/170428-python-2-7-aws-lambda.markdown

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Head to the
3838
web browser. Sign into your account, or sign up for a new account which
3939
comes with a free tier so you don't have to pay.
4040

41-
<img src="/img/170428-aws-lambda-python-2-7/aws-amazon-com.jpg" width="100%" class="technical-diagram img-rounded" alt="AWS Lambda landing page.">
41+
<img src="/img/170428-aws-lambda-python-2-7/aws-amazon-com.jpg" width="100%" class="shot rnd outl" alt="AWS Lambda landing page.">
4242

4343
If you're not taken directly to the
4444
[Lambda Console page](https://console.aws.amazon.com/lambda/home) after
@@ -47,26 +47,26 @@ services (that seems to expand every week) so the best way to get around
4747
is to select the search text box and search for "lambda" as shown in the
4848
following screenshot.
4949

50-
<img src="/img/170428-aws-lambda-python-2-7/search-for-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Search for lambda in the dashboard text box.">
50+
<img src="/img/170428-aws-lambda-python-2-7/search-for-lambda.jpg" width="100%" class="shot rnd outl" alt="Search for lambda in the dashboard text box.">
5151

5252
Press the "Create a Lambda function" button and you'll see the
5353
"Select Blueprint" page.
5454

55-
<img src="/img/170428-aws-lambda-python-2-7/select-blueprint.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="The select blueprint Lambda screen, where you should select Blank Function.">
55+
<img src="/img/170428-aws-lambda-python-2-7/select-blueprint.jpg" width="100%" class="shot rnd outl" alt="The select blueprint Lambda screen, where you should select Blank Function.">
5656

5757
Choose "Blank Function". The next screen gives the option to select a
5858
"trigger", which is how the Lambda function gets executed. A trigger is
5959
some event that is integrated with other AWS services and can be exposed
6060
externally via an API or device such as Alexa.
6161

62-
<img src="/img/170428-aws-lambda-python-2-7/configure-triggers.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Configure trigger screen, which we will not use for now because we will manually kick off our Lambda.">
62+
<img src="/img/170428-aws-lambda-python-2-7/configure-triggers.jpg" width="100%" class="shot rnd outl" alt="Configure trigger screen, which we will not use for now because we will manually kick off our Lambda.">
6363

6464
However, we aren't going to set up a trigger for this function because
6565
we can manually test the Lambda later before connecting it to a trigger.
6666
Leave the trigger icon blank and click the "Next" button to move along
6767
to the next screen.
6868

69-
<img src="/img/170428-aws-lambda-python-2-7/blank-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Blank Lambda configuration screen.">
69+
<img src="/img/170428-aws-lambda-python-2-7/blank-lambda.jpg" width="100%" class="shot rnd outl" alt="Blank Lambda configuration screen.">
7070

7171
Now we're on the screen where we can enter our specific configuration
7272
and code for our new Lambda.
@@ -77,7 +77,7 @@ Start by entering a name for your Lambda function, such as "my_first_python_lamb
7777
when you start using Lambda regularly to keep all your functions straight.
7878
In the Runtime drop-down, select Python 2.7 as the execution language.
7979

80-
<img src="/img/170428-aws-lambda-python-2-7/first-python-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Enter a name, description and select Python 2.7 on the Lambda configuration screen.">
80+
<img src="/img/170428-aws-lambda-python-2-7/first-python-lambda.jpg" width="100%" class="shot rnd outl" alt="Enter a name, description and select Python 2.7 on the Lambda configuration screen.">
8181

8282
Below the Runtime drop-down you'll see a large text box for writing code.
8383
We can also choose to upload a ZIP file with our Python application which
@@ -124,7 +124,7 @@ whole number above 0 for `how_many_times`. Our Python code's error handling
124124
is not very robust so a value other than a number in the `how_many_times`
125125
variable will cause the script to throw an error when it is executed.
126126

127-
<img src="/img/170428-aws-lambda-python-2-7/environment-variables.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Enter the exact keys of what_to_print and how_many_times along with corresponding values as environment variables.">
127+
<img src="/img/170428-aws-lambda-python-2-7/environment-variables.jpg" width="100%" class="shot rnd outl" alt="Enter the exact keys of what_to_print and how_many_times along with corresponding values as environment variables.">
128128

129129
Our code and environment variables are in place and we just need to set
130130
a few more AWS-specific settings before we can test the Lambda function.
@@ -139,7 +139,7 @@ be `lambda_function.lambda_handler`. Select
139139
"Role name" field enter "dynamodb_permissions". Under "Policy templates"
140140
select the "Simple Microservice permissions".
141141

142-
<img src="/img/170428-aws-lambda-python-2-7/lambda-handler-and-role.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="For the final configuration, keep the default handler, create a new role from a template for Simple Microservice permissions and save it with a unique name.">
142+
<img src="/img/170428-aws-lambda-python-2-7/lambda-handler-and-role.jpg" width="100%" class="shot rnd outl" alt="For the final configuration, keep the default handler, create a new role from a template for Simple Microservice permissions and save it with a unique name.">
143143

144144
The "Simple Microservice permissions" gives our Lambda access to
145145
[AWS DynamoDB](https://aws.amazon.com/dynamodb/). We won't use DynamoDB in
@@ -149,29 +149,29 @@ storage when working with Lambda.
149149
Now that our code and configuration is in place, click the "Next" button
150150
at the bottom right corner of the page.
151151

152-
<img src="/img/170428-aws-lambda-python-2-7/review-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="We can review the values set during our configuration.">
152+
<img src="/img/170428-aws-lambda-python-2-7/review-lambda.jpg" width="100%" class="shot rnd outl" alt="We can review the values set during our configuration.">
153153

154154
The review screen will show us our configuration settings. Scroll down
155155
to the bottom and click the "Create function" button to continue.
156156

157-
<img src="/img/170428-aws-lambda-python-2-7/create-function.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Click the create function button to continue.">
157+
<img src="/img/170428-aws-lambda-python-2-7/create-function.jpg" width="100%" class="shot rnd outl" alt="Click the create function button to continue.">
158158

159159
We should see a success message on the next page just below the
160160
"Save and test" button.
161161

162-
<img src="/img/170428-aws-lambda-python-2-7/save-and-test.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Save and test button.">
162+
<img src="/img/170428-aws-lambda-python-2-7/save-and-test.jpg" width="100%" class="shot rnd outl" alt="Save and test button.">
163163

164164
Press the "Test" button to execute the Lambda. Lambda prompts us for
165165
some data to simulate an event that would trigger our function. Select
166166
the "Hello World" sample event template, which contains some example keys.
167167
Our Lambda will not those keys in its execution so it does not matter what
168168
they are. Click the "Save and test" button at the bottom of the modal.
169169

170-
<img src="/img/170428-aws-lambda-python-2-7/sample-event-template.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Sample event template for our Lambda execution.">
170+
<img src="/img/170428-aws-lambda-python-2-7/sample-event-template.jpg" width="100%" class="shot rnd outl" alt="Sample event template for our Lambda execution.">
171171

172172
Scroll down to the "Execution result" section where we can see our output.
173173

174-
<img src="/img/170428-aws-lambda-python-2-7/execution-results.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Execution results from running our Lambda function.">
174+
<img src="/img/170428-aws-lambda-python-2-7/execution-results.jpg" width="100%" class="" alt="Execution results from running our Lambda function.">
175175

176176
We get the log output that shows us the return value of our function. In
177177
this case it is the string message from `what_to_print`. We can also see

content/posts/170429-python-3-6-aws-lambda.markdown

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ If using Python 2 is still your jam rather than Python 3, take a look at
4343
Sign up for a new [Amazon Web Services account](https://aws.amazon.com/),
4444
which provides a generous free tier, or use your existing AWS account.
4545

46-
<img src="/img/170429-aws-lambda-python-3-6/aws-amazon-com.jpg" width="100%" class="technical-diagram img-rounded" alt="AWS Lambda landing and sign in screen.">
46+
<img src="/img/170429-aws-lambda-python-3-6/aws-amazon-com.jpg" width="100%" class="shot outl rnd" alt="AWS Lambda landing and sign in screen.">
4747

4848
After signing up a few tutorials may pop up, but skip past them and
4949
go to the main Console. AWS has tons of services, with more being added
5050
every month, so using the search box is the best way to get around.
5151
Select the search text box, enter "lambda" and select "Lambda" to get to
5252
the Lambda starting page.
5353

54-
<img src="/img/170429-aws-lambda-python-3-6/search-for-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Search for lambda in the dashboard text box.">
54+
<img src="/img/170429-aws-lambda-python-3-6/search-for-lambda.jpg" width="100%" class="shot rnd outl" alt="Search for lambda in the dashboard text box.">
5555

5656
Click the "Create a Lambda function" button. The "Select Blueprint" page
5757
will appear.
5858

59-
<img src="/img/170429-aws-lambda-python-3-6/select-blueprint.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="The Select Blueprint Lambda screen.">
59+
<img src="/img/170429-aws-lambda-python-3-6/select-blueprint.jpg" width="100%" class="shot rnd outl" alt="The Select Blueprint Lambda screen.">
6060

6161
Select "Blank Function" and the "Configure triggers" page will come up.
6262
It was non-obvious to me at first, but you don't actually need to configure a
@@ -65,13 +65,13 @@ when to execute based on an event from another AWS service such as
6565
[API Gateway](https://aws.amazon.com/api-gateway/) or
6666
[Cloudwatch](https://aws.amazon.com/cloudwatch/).
6767

68-
<img src="/img/170429-aws-lambda-python-3-6/configure-triggers.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Configure Lambda trigger screen.">
68+
<img src="/img/170429-aws-lambda-python-3-6/configure-triggers.jpg" width="100%" class="shot rnd outl" alt="Configure Lambda trigger screen.">
6969

7070
We won't configure a trigger for this function because we can manually
7171
kick off the Lambda to test it when we are finished configuring it. Leave
7272
the trigger icon blank and click the "Next" button to move along.
7373

74-
<img src="/img/170429-aws-lambda-python-3-6/blank-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="The Lambda configuration screen.">
74+
<img src="/img/170429-aws-lambda-python-3-6/blank-lambda.jpg" width="100%" class="shot outl rnd" alt="The Lambda configuration screen.">
7575

7676
Next we get to the "Configure function" screen where we can finally write
7777
some code!
@@ -84,7 +84,7 @@ when you have a dozens or hundreds of different Lambda functions and
8484
need to keep them straight. In the Runtime drop-down, select Python 3.6 for
8585
the programming language.
8686

87-
<img src="/img/170429-aws-lambda-python-3-6/python-3-6-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Enter a name, description and use Python 3.6 for the Lambda.">
87+
<img src="/img/170429-aws-lambda-python-3-6/python-3-6-lambda.jpg" width="100%" class="shot outl rnd" alt="Enter a name, description and use Python 3.6 for the Lambda.">
8888

8989
Beneath the Runtime drop-down there is a large text box for code,
9090
prepopulated with a `lambda_handler` function definition. The
@@ -137,7 +137,7 @@ is not very robust so a value other than a number in the `how_many_times`
137137
variable will cause the script to throw an error when it is executed due
138138
to the forced casting of `how_many_times` via the `int()` function.
139139

140-
<img src="/img/170429-aws-lambda-python-3-6/environment-variables.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Section to set environment variables for the Lambda function.">
140+
<img src="/img/170429-aws-lambda-python-3-6/environment-variables.jpg" width="100%" class="shot rnd outl" alt="Section to set environment variables for the Lambda function.">
141141

142142
The Python 3.6 code and the environment variables are now in place. We
143143
just need to handle a few more AWS-specific settings before we can test the
@@ -159,34 +159,34 @@ The "Simple Microservice permissions" allows our Lambda to access
159159
this tutorial but the service is commonly used either as permanent or
160160
temporary storage for Lambda functions.
161161

162-
<img src="/img/170429-aws-lambda-python-3-6/lambda-handler-and-role.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="For the final configuration, keep the default handler, create a new role from a template for Simple Microservice permissions and save it with a unique name.">
162+
<img src="/img/170429-aws-lambda-python-3-6/lambda-handler-and-role.jpg" width="100%" class="shot rnd outl" alt="For the final configuration, keep the default handler, create a new role from a template for Simple Microservice permissions and save it with a unique name.">
163163

164164
Our code and configuration is in place so click the "Next" button
165165
at the bottom right corner of the page.
166166

167-
<img src="/img/170429-aws-lambda-python-3-6/review-lambda.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Review Lambda configuration.">
167+
<img src="/img/170429-aws-lambda-python-3-6/review-lambda.jpg" width="100%" class="shot rnd outl" alt="Review Lambda configuration.">
168168

169169
The review screen shows us our configuration settings to make sure we
170170
selected the appropriate values for our new Lambda function. Scroll down
171171
press "Create function".
172172

173-
<img src="/img/170429-aws-lambda-python-3-6/create-function.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Click the create function button to continue.">
173+
<img src="/img/170429-aws-lambda-python-3-6/create-function.jpg" width="100%" class="shot rnd outl" alt="Click the create function button to continue.">
174174

175175
Success message should appear on the next page below the "Test" button.
176176

177-
<img src="/img/170429-aws-lambda-python-3-6/test.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Test button on the execution screen.">
177+
<img src="/img/170429-aws-lambda-python-3-6/test.jpg" width="100%" class="shot outl rnd" alt="Test button on the execution screen.">
178178

179179
Click the "Test" button to execute the Lambda. Lambda will prompt us for
180180
some data to simulate an event that would kick off our function. Select
181181
the "Hello World" sample event template, which contains some keys but our
182182
Lambda will not use that in its execution. Click the "Save and test" button
183183
at the bottom of the modal.
184184

185-
<img src="/img/170429-aws-lambda-python-3-6/sample-event-template.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Sample event template for Lambda execution.">
185+
<img src="/img/170429-aws-lambda-python-3-6/sample-event-template.jpg" width="100%" class="shot outl rnd" alt="Sample event template for Lambda execution.">
186186

187187
Scroll down to the "Execution result" section where we can see our output.
188188

189-
<img src="/img/170429-aws-lambda-python-3-6/execution-results.jpg" width="100%" class="technical-diagram img-rounded bordered" alt="Results from executing our new Lambda function.">
189+
<img src="/img/170429-aws-lambda-python-3-6/execution-results.jpg" width="100%" class="shot outl rnd" alt="Results from executing our new Lambda function.">
190190

191191
The log output shows us the return value of our function, which in this
192192
execution was the string message from `what_to_print`. We can also see

theme/templates/css/page-article.css

Lines changed: 1 addition & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)