Skip to content
GitLab
Explore
Sign in
Register
shore
Am I live
Compare revisions
f0b18892269bde16c4a9e993c0dc54d7e33e0989 to c2bbdeeb81344c415d41edcdf172bf2cc2454b0b
Commits on Source (2)
Mark the API key as sensitive.
· a7b550f8
nimrod
authored
Jan 07, 2022
a7b550f8
fixup! Migrate to another SMS sending service.
· c2bbdeeb
nimrod
authored
Jan 07, 2022
c2bbdeeb
Hide whitespace changes
Inline
Side-by-side
sms-notify.tf
View file @
c2bbdeeb
variable
"messagebird_access_key"
{
description
=
"MessageBird API access key."
sensitive
=
true
}
# It would have been nicer to buy the phone number with Terraform and the
...
...
src/sms_notify.py
View file @
c2bbdeeb
...
...
@@ -10,7 +10,7 @@ TO_NUMBER = os.environ["TO_NUMBER"]
def
handler
(
event
,
context
):
message
=
event
[
"
Records
"
][
0
][
"
Sns
"
][
"
Message
"
]
client
=
messagebird
.
Client
(
MSGBIRD_ACCESS_KEY
)
client
.
message
s
_create
(
client
.
message_create
(
message
,
TO_NUMBER
,
)
...
...