You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -121,13 +121,23 @@ Environment:
121
121
122
122
When your function initializes, each of the four environmet variables (`SECRET`, `ACCESS_KEY`, `DB_URL`, and `NR_KEY`) will return values from their respective SSM paths.
123
123
124
-
```
124
+
```javascript
125
+
// node
125
126
process.env.SECRET; // 1A2B3C4D5E6F
126
127
process.env.ACCESS_KEY; // G7H8I9J0K1L2
127
128
process.env.DB_URL; // mysql2://u:p@host:3306
128
129
process.env.NR_KEY; // z6y5x4w3v2u1
129
130
```
130
131
132
+
```ruby
133
+
# ruby
134
+
env["SECRET"]; ## 1A2B3C4D5E6F
135
+
env["ACCESS_KEY"]; ## G7H8I9J0K1L2
136
+
env["DB_URL"]; ## mysql2://u:p@host:3306
137
+
env["NR_KEY"]; ## z6y5x4w3v2u1
138
+
```
139
+
140
+
131
141
Here are a few details about the internal implementation on how Crypteia works:
132
142
133
143
1. When accessing a single parameter path via `x-crypteia-ssm:` the environment variable name available to your runtime is used as is. No part of the parameter path effects the resulting name.
@@ -170,6 +180,28 @@ Please use AWS' [Restricting access to Systems Manager parameters using IAM poli
170
180
}
171
181
```
172
182
183
+
#### Troubleshooting
184
+
185
+
Crypteia has very verbose logging which enabled by creating an environment variable:
This project is built for [GitHub Codespcaes](https://github.com/features/codespaces) using the [Development Container](https://containers.dev) specification. Even though Codespaces may not be available to everyone, this project's containers are easy to work for anyone with any editor.
0 commit comments