cdk-ecr-deployment 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (565) hide show
  1. package/.jsii +26 -107
  2. package/.jsii.tabl.json +1 -1
  3. package/API.md +0 -59
  4. package/README.md +7 -17
  5. package/lib/index.d.ts +1 -29
  6. package/lib/index.js +8 -26
  7. package/package.json +1 -13
  8. package/build-lambda.sh +0 -12
  9. package/lambda-src/.dockerignore +0 -9
  10. package/lambda-src/Dockerfile +0 -26
  11. package/lambda-src/Makefile +0 -33
  12. package/lambda-src/go.mod +0 -136
  13. package/lambda-src/go.sum +0 -499
  14. package/lambda-src/internal/iolimits/iolimits.go +0 -68
  15. package/lambda-src/internal/iolimits/iolimits_test.go +0 -39
  16. package/lambda-src/internal/tarfile/reader.go +0 -179
  17. package/lambda-src/internal/tarfile/reader_test.go +0 -31
  18. package/lambda-src/internal/tarfile/s3file.go +0 -363
  19. package/lambda-src/internal/tarfile/s3file_test.go +0 -135
  20. package/lambda-src/internal/tarfile/src.go +0 -328
  21. package/lambda-src/internal/tarfile/types.go +0 -31
  22. package/lambda-src/main.go +0 -176
  23. package/lambda-src/main_test.go +0 -64
  24. package/lambda-src/s3/src.go +0 -40
  25. package/lambda-src/s3/transport.go +0 -149
  26. package/lambda-src/s3/transport_test.go +0 -96
  27. package/lambda-src/utils.go +0 -206
  28. package/lambda-src/utils_test.go +0 -63
  29. package/lib/config.d.ts +0 -1
  30. package/lib/config.js +0 -12
  31. package/node_modules/@sindresorhus/is/dist/index.d.ts +0 -232
  32. package/node_modules/@sindresorhus/is/dist/index.js +0 -434
  33. package/node_modules/@sindresorhus/is/dist/types.d.ts +0 -25
  34. package/node_modules/@sindresorhus/is/dist/types.js +0 -3
  35. package/node_modules/@sindresorhus/is/license +0 -9
  36. package/node_modules/@sindresorhus/is/package.json +0 -96
  37. package/node_modules/@sindresorhus/is/readme.md +0 -669
  38. package/node_modules/@szmarczak/http-timer/LICENSE +0 -21
  39. package/node_modules/@szmarczak/http-timer/README.md +0 -93
  40. package/node_modules/@szmarczak/http-timer/dist/source/index.d.ts +0 -32
  41. package/node_modules/@szmarczak/http-timer/dist/source/index.js +0 -126
  42. package/node_modules/@szmarczak/http-timer/package.json +0 -72
  43. package/node_modules/@types/cacheable-request/LICENSE +0 -21
  44. package/node_modules/@types/cacheable-request/README.md +0 -16
  45. package/node_modules/@types/cacheable-request/index.d.ts +0 -137
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +0 -21
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +0 -15
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +0 -8
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +0 -1095
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +0 -541
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +0 -1926
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +0 -1549
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +0 -579
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  56. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +0 -9
  57. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  58. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  59. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +0 -452
  60. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +0 -21
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +0 -4510
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +0 -599
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +0 -476
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +0 -865
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +0 -124
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +0 -170
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +0 -931
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +0 -1275
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +0 -4343
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -511
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +0 -1959
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +0 -2558
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +0 -543
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -92
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +0 -3966
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -702
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +0 -1029
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +0 -495
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +0 -220
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +0 -200
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +0 -970
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +0 -2013
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +0 -117
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +0 -153
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +0 -162
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +0 -589
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +0 -430
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +0 -153
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +0 -439
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +0 -12
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +0 -90
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +0 -614
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +0 -1662
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +0 -67
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +0 -2150
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +0 -97
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -240
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +0 -1226
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +0 -197
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +0 -208
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +0 -972
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +0 -2439
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +0 -808
  109. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +0 -976
  110. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +0 -181
  111. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +0 -745
  112. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +0 -539
  113. package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +0 -21
  114. package/node_modules/@types/cacheable-request/node_modules/undici-types/README.md +0 -6
  115. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +0 -31
  116. package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +0 -43
  117. package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +0 -29
  118. package/node_modules/@types/cacheable-request/node_modules/undici-types/cache.d.ts +0 -36
  119. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +0 -108
  120. package/node_modules/@types/cacheable-request/node_modules/undici-types/connector.d.ts +0 -34
  121. package/node_modules/@types/cacheable-request/node_modules/undici-types/content-type.d.ts +0 -21
  122. package/node_modules/@types/cacheable-request/node_modules/undici-types/cookies.d.ts +0 -28
  123. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  124. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +0 -255
  125. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  126. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +0 -149
  127. package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +0 -61
  128. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +0 -209
  129. package/node_modules/@types/cacheable-request/node_modules/undici-types/file.d.ts +0 -39
  130. package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +0 -54
  131. package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +0 -108
  132. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  133. package/node_modules/@types/cacheable-request/node_modules/undici-types/global-origin.d.ts +0 -7
  134. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +0 -15
  135. package/node_modules/@types/cacheable-request/node_modules/undici-types/header.d.ts +0 -4
  136. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +0 -71
  137. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +0 -17
  138. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +0 -50
  139. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +0 -25
  140. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-errors.d.ts +0 -12
  141. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  142. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +0 -25
  143. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +0 -55
  144. package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -33
  145. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool-stats.d.ts +0 -19
  146. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +0 -39
  147. package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +0 -28
  148. package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +0 -60
  149. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +0 -8
  150. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +0 -116
  151. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +0 -18
  152. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +0 -222
  153. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +0 -150
  154. package/node_modules/@types/cacheable-request/package.json +0 -35
  155. package/node_modules/@types/http-cache-semantics/LICENSE +0 -21
  156. package/node_modules/@types/http-cache-semantics/README.md +0 -15
  157. package/node_modules/@types/http-cache-semantics/index.d.ts +0 -165
  158. package/node_modules/@types/http-cache-semantics/package.json +0 -25
  159. package/node_modules/@types/keyv/LICENSE +0 -21
  160. package/node_modules/@types/keyv/README.md +0 -16
  161. package/node_modules/@types/keyv/index.d.ts +0 -90
  162. package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -21
  163. package/node_modules/@types/keyv/node_modules/@types/node/README.md +0 -15
  164. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +0 -8
  165. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +0 -1095
  166. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +0 -541
  167. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  168. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +0 -1926
  169. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +0 -1549
  170. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +0 -579
  171. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  172. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +0 -9
  173. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  174. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  175. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +0 -452
  176. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +0 -21
  177. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +0 -4510
  178. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +0 -599
  179. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  180. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +0 -476
  181. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +0 -865
  182. package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +0 -124
  183. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +0 -170
  184. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +0 -931
  185. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +0 -1275
  186. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +0 -4343
  187. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -511
  188. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  189. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +0 -1959
  190. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +0 -2558
  191. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +0 -543
  192. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -92
  193. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +0 -3966
  194. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -702
  195. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +0 -1029
  196. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +0 -495
  197. package/node_modules/@types/keyv/node_modules/@types/node/package.json +0 -220
  198. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +0 -200
  199. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +0 -970
  200. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +0 -2013
  201. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +0 -117
  202. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +0 -153
  203. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +0 -162
  204. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +0 -589
  205. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +0 -430
  206. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +0 -153
  207. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +0 -439
  208. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +0 -12
  209. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +0 -90
  210. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +0 -614
  211. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +0 -1662
  212. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +0 -67
  213. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +0 -2150
  214. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +0 -97
  215. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -240
  216. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +0 -1226
  217. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +0 -197
  218. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  219. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  220. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  221. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +0 -208
  222. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +0 -972
  223. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +0 -2439
  224. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +0 -808
  225. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +0 -976
  226. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +0 -181
  227. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +0 -745
  228. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +0 -539
  229. package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +0 -21
  230. package/node_modules/@types/keyv/node_modules/undici-types/README.md +0 -6
  231. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +0 -31
  232. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +0 -43
  233. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +0 -29
  234. package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +0 -36
  235. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +0 -108
  236. package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +0 -34
  237. package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +0 -21
  238. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +0 -28
  239. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  240. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +0 -255
  241. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  242. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +0 -149
  243. package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +0 -61
  244. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +0 -209
  245. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +0 -39
  246. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +0 -54
  247. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +0 -108
  248. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  249. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +0 -7
  250. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +0 -15
  251. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +0 -4
  252. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +0 -71
  253. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +0 -17
  254. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +0 -50
  255. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +0 -25
  256. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +0 -12
  257. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  258. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +0 -25
  259. package/node_modules/@types/keyv/node_modules/undici-types/package.json +0 -55
  260. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -33
  261. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +0 -19
  262. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +0 -39
  263. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +0 -28
  264. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +0 -60
  265. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +0 -8
  266. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +0 -116
  267. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +0 -18
  268. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +0 -222
  269. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +0 -150
  270. package/node_modules/@types/keyv/package.json +0 -32
  271. package/node_modules/@types/responselike/LICENSE +0 -21
  272. package/node_modules/@types/responselike/README.md +0 -48
  273. package/node_modules/@types/responselike/index.d.ts +0 -29
  274. package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +0 -21
  275. package/node_modules/@types/responselike/node_modules/@types/node/README.md +0 -15
  276. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +0 -8
  277. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +0 -1095
  278. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +0 -541
  279. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +0 -460
  280. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +0 -1926
  281. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +0 -1549
  282. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +0 -579
  283. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  284. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +0 -9
  285. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  286. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  287. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +0 -452
  288. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +0 -21
  289. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +0 -4510
  290. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +0 -599
  291. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  292. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +0 -476
  293. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +0 -865
  294. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +0 -124
  295. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +0 -170
  296. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +0 -931
  297. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +0 -1275
  298. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +0 -4343
  299. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -511
  300. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  301. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +0 -1959
  302. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +0 -2558
  303. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +0 -543
  304. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -92
  305. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +0 -3966
  306. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -702
  307. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +0 -1029
  308. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +0 -495
  309. package/node_modules/@types/responselike/node_modules/@types/node/package.json +0 -220
  310. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +0 -200
  311. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +0 -970
  312. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +0 -2013
  313. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +0 -117
  314. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +0 -153
  315. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +0 -162
  316. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +0 -589
  317. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +0 -430
  318. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +0 -153
  319. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +0 -439
  320. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +0 -12
  321. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +0 -90
  322. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +0 -614
  323. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +0 -1662
  324. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +0 -67
  325. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +0 -2150
  326. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +0 -97
  327. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -240
  328. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +0 -1226
  329. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +0 -197
  330. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -457
  331. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  332. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  333. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +0 -208
  334. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +0 -972
  335. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +0 -2439
  336. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +0 -808
  337. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +0 -976
  338. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +0 -181
  339. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +0 -745
  340. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +0 -539
  341. package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +0 -21
  342. package/node_modules/@types/responselike/node_modules/undici-types/README.md +0 -6
  343. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +0 -31
  344. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +0 -43
  345. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +0 -29
  346. package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +0 -36
  347. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +0 -108
  348. package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +0 -34
  349. package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +0 -21
  350. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +0 -28
  351. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  352. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +0 -255
  353. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  354. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +0 -149
  355. package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +0 -61
  356. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +0 -209
  357. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +0 -39
  358. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +0 -54
  359. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +0 -108
  360. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  361. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +0 -7
  362. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +0 -15
  363. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +0 -4
  364. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +0 -71
  365. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +0 -17
  366. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +0 -50
  367. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +0 -25
  368. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +0 -12
  369. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  370. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +0 -25
  371. package/node_modules/@types/responselike/node_modules/undici-types/package.json +0 -55
  372. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -33
  373. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +0 -19
  374. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +0 -39
  375. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +0 -28
  376. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +0 -60
  377. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +0 -8
  378. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +0 -116
  379. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +0 -18
  380. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +0 -222
  381. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +0 -150
  382. package/node_modules/@types/responselike/package.json +0 -27
  383. package/node_modules/cacheable-lookup/LICENSE +0 -21
  384. package/node_modules/cacheable-lookup/README.md +0 -240
  385. package/node_modules/cacheable-lookup/index.d.ts +0 -139
  386. package/node_modules/cacheable-lookup/package.json +0 -45
  387. package/node_modules/cacheable-lookup/source/index.js +0 -436
  388. package/node_modules/cacheable-request/LICENSE +0 -21
  389. package/node_modules/cacheable-request/README.md +0 -206
  390. package/node_modules/cacheable-request/package.json +0 -56
  391. package/node_modules/cacheable-request/src/index.js +0 -251
  392. package/node_modules/clone-response/LICENSE +0 -21
  393. package/node_modules/clone-response/README.md +0 -62
  394. package/node_modules/clone-response/node_modules/mimic-response/index.js +0 -32
  395. package/node_modules/clone-response/node_modules/mimic-response/license +0 -9
  396. package/node_modules/clone-response/node_modules/mimic-response/package.json +0 -37
  397. package/node_modules/clone-response/node_modules/mimic-response/readme.md +0 -54
  398. package/node_modules/clone-response/package.json +0 -41
  399. package/node_modules/clone-response/src/index.js +0 -17
  400. package/node_modules/decompress-response/index.d.ts +0 -22
  401. package/node_modules/decompress-response/index.js +0 -58
  402. package/node_modules/decompress-response/license +0 -9
  403. package/node_modules/decompress-response/package.json +0 -56
  404. package/node_modules/decompress-response/readme.md +0 -48
  405. package/node_modules/defer-to-connect/LICENSE +0 -21
  406. package/node_modules/defer-to-connect/README.md +0 -38
  407. package/node_modules/defer-to-connect/dist/source/index.d.ts +0 -10
  408. package/node_modules/defer-to-connect/dist/source/index.js +0 -47
  409. package/node_modules/defer-to-connect/package.json +0 -71
  410. package/node_modules/end-of-stream/LICENSE +0 -21
  411. package/node_modules/end-of-stream/README.md +0 -54
  412. package/node_modules/end-of-stream/index.js +0 -94
  413. package/node_modules/end-of-stream/package.json +0 -37
  414. package/node_modules/get-stream/buffer-stream.js +0 -52
  415. package/node_modules/get-stream/index.d.ts +0 -108
  416. package/node_modules/get-stream/index.js +0 -60
  417. package/node_modules/get-stream/license +0 -9
  418. package/node_modules/get-stream/package.json +0 -50
  419. package/node_modules/get-stream/readme.md +0 -124
  420. package/node_modules/got/dist/source/as-promise/create-rejection.d.ts +0 -2
  421. package/node_modules/got/dist/source/as-promise/create-rejection.js +0 -30
  422. package/node_modules/got/dist/source/as-promise/index.d.ts +0 -3
  423. package/node_modules/got/dist/source/as-promise/index.js +0 -176
  424. package/node_modules/got/dist/source/as-promise/normalize-arguments.d.ts +0 -3
  425. package/node_modules/got/dist/source/as-promise/normalize-arguments.js +0 -78
  426. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +0 -3
  427. package/node_modules/got/dist/source/as-promise/parse-body.js +0 -25
  428. package/node_modules/got/dist/source/as-promise/types.d.ts +0 -256
  429. package/node_modules/got/dist/source/as-promise/types.js +0 -42
  430. package/node_modules/got/dist/source/core/calculate-retry-delay.d.ts +0 -5
  431. package/node_modules/got/dist/source/core/calculate-retry-delay.js +0 -29
  432. package/node_modules/got/dist/source/core/index.d.ts +0 -1124
  433. package/node_modules/got/dist/source/core/index.js +0 -1505
  434. package/node_modules/got/dist/source/core/utils/dns-ip-version.d.ts +0 -5
  435. package/node_modules/got/dist/source/core/utils/dns-ip-version.js +0 -17
  436. package/node_modules/got/dist/source/core/utils/get-body-size.d.ts +0 -3
  437. package/node_modules/got/dist/source/core/utils/get-body-size.js +0 -32
  438. package/node_modules/got/dist/source/core/utils/get-buffer.d.ts +0 -4
  439. package/node_modules/got/dist/source/core/utils/get-buffer.js +0 -16
  440. package/node_modules/got/dist/source/core/utils/is-form-data.d.ts +0 -8
  441. package/node_modules/got/dist/source/core/utils/is-form-data.js +0 -4
  442. package/node_modules/got/dist/source/core/utils/is-response-ok.d.ts +0 -2
  443. package/node_modules/got/dist/source/core/utils/is-response-ok.js +0 -8
  444. package/node_modules/got/dist/source/core/utils/options-to-url.d.ts +0 -14
  445. package/node_modules/got/dist/source/core/utils/options-to-url.js +0 -53
  446. package/node_modules/got/dist/source/core/utils/proxy-events.d.ts +0 -3
  447. package/node_modules/got/dist/source/core/utils/proxy-events.js +0 -17
  448. package/node_modules/got/dist/source/core/utils/timed-out.d.ts +0 -29
  449. package/node_modules/got/dist/source/core/utils/timed-out.js +0 -121
  450. package/node_modules/got/dist/source/core/utils/unhandle.d.ts +0 -11
  451. package/node_modules/got/dist/source/core/utils/unhandle.js +0 -22
  452. package/node_modules/got/dist/source/core/utils/url-to-options.d.ts +0 -15
  453. package/node_modules/got/dist/source/core/utils/url-to-options.js +0 -24
  454. package/node_modules/got/dist/source/core/utils/weakable-map.d.ts +0 -8
  455. package/node_modules/got/dist/source/core/utils/weakable-map.js +0 -29
  456. package/node_modules/got/dist/source/create.d.ts +0 -5
  457. package/node_modules/got/dist/source/create.js +0 -240
  458. package/node_modules/got/dist/source/index.d.ts +0 -4
  459. package/node_modules/got/dist/source/index.js +0 -132
  460. package/node_modules/got/dist/source/types.d.ts +0 -344
  461. package/node_modules/got/dist/source/types.js +0 -2
  462. package/node_modules/got/dist/source/utils/deep-freeze.d.ts +0 -1
  463. package/node_modules/got/dist/source/utils/deep-freeze.js +0 -12
  464. package/node_modules/got/dist/source/utils/deprecation-warning.d.ts +0 -2
  465. package/node_modules/got/dist/source/utils/deprecation-warning.js +0 -13
  466. package/node_modules/got/license +0 -9
  467. package/node_modules/got/package.json +0 -131
  468. package/node_modules/got/readme.md +0 -2477
  469. package/node_modules/hpagent/.github/dependabot.yml +0 -8
  470. package/node_modules/hpagent/.github/workflows/build.yml +0 -29
  471. package/node_modules/hpagent/LICENSE +0 -21
  472. package/node_modules/hpagent/README.md +0 -138
  473. package/node_modules/hpagent/index.d.ts +0 -26
  474. package/node_modules/hpagent/index.js +0 -101
  475. package/node_modules/hpagent/index.mjs +0 -5
  476. package/node_modules/hpagent/package.json +0 -49
  477. package/node_modules/hpagent/test/got.test.js +0 -111
  478. package/node_modules/hpagent/test/http-http.test.js +0 -351
  479. package/node_modules/hpagent/test/http-https.test.js +0 -313
  480. package/node_modules/hpagent/test/https-http.test.js +0 -313
  481. package/node_modules/hpagent/test/https-https.test.js +0 -313
  482. package/node_modules/hpagent/test/index.test-d.ts +0 -45
  483. package/node_modules/hpagent/test/needle.test.js +0 -103
  484. package/node_modules/hpagent/test/node-fetch.test.js +0 -103
  485. package/node_modules/hpagent/test/simple-get.test.js +0 -139
  486. package/node_modules/hpagent/test/ssl.cert +0 -19
  487. package/node_modules/hpagent/test/ssl.key +0 -27
  488. package/node_modules/hpagent/test/utils.js +0 -59
  489. package/node_modules/http-cache-semantics/LICENSE +0 -9
  490. package/node_modules/http-cache-semantics/README.md +0 -203
  491. package/node_modules/http-cache-semantics/index.js +0 -674
  492. package/node_modules/http-cache-semantics/package.json +0 -18
  493. package/node_modules/http2-wrapper/LICENSE +0 -21
  494. package/node_modules/http2-wrapper/README.md +0 -470
  495. package/node_modules/http2-wrapper/package.json +0 -54
  496. package/node_modules/http2-wrapper/source/agent.js +0 -670
  497. package/node_modules/http2-wrapper/source/auto.js +0 -149
  498. package/node_modules/http2-wrapper/source/client-request.js +0 -445
  499. package/node_modules/http2-wrapper/source/incoming-message.js +0 -58
  500. package/node_modules/http2-wrapper/source/index.js +0 -28
  501. package/node_modules/http2-wrapper/source/utils/calculate-server-name.js +0 -27
  502. package/node_modules/http2-wrapper/source/utils/errors.js +0 -45
  503. package/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +0 -13
  504. package/node_modules/http2-wrapper/source/utils/proxy-events.js +0 -7
  505. package/node_modules/http2-wrapper/source/utils/url-to-options.js +0 -25
  506. package/node_modules/json-buffer/.travis.yml +0 -3
  507. package/node_modules/json-buffer/LICENSE +0 -22
  508. package/node_modules/json-buffer/README.md +0 -24
  509. package/node_modules/json-buffer/index.js +0 -58
  510. package/node_modules/json-buffer/package.json +0 -34
  511. package/node_modules/json-buffer/test/index.js +0 -63
  512. package/node_modules/keyv/README.md +0 -429
  513. package/node_modules/keyv/package.json +0 -57
  514. package/node_modules/keyv/src/index.d.ts +0 -112
  515. package/node_modules/keyv/src/index.js +0 -259
  516. package/node_modules/lowercase-keys/index.d.ts +0 -16
  517. package/node_modules/lowercase-keys/index.js +0 -10
  518. package/node_modules/lowercase-keys/license +0 -9
  519. package/node_modules/lowercase-keys/package.json +0 -38
  520. package/node_modules/lowercase-keys/readme.md +0 -32
  521. package/node_modules/mimic-response/index.d.ts +0 -17
  522. package/node_modules/mimic-response/index.js +0 -77
  523. package/node_modules/mimic-response/license +0 -9
  524. package/node_modules/mimic-response/package.json +0 -42
  525. package/node_modules/mimic-response/readme.md +0 -78
  526. package/node_modules/normalize-url/index.d.ts +0 -267
  527. package/node_modules/normalize-url/index.js +0 -216
  528. package/node_modules/normalize-url/license +0 -9
  529. package/node_modules/normalize-url/package.json +0 -50
  530. package/node_modules/normalize-url/readme.md +0 -286
  531. package/node_modules/once/LICENSE +0 -15
  532. package/node_modules/once/README.md +0 -79
  533. package/node_modules/once/once.js +0 -42
  534. package/node_modules/once/package.json +0 -33
  535. package/node_modules/p-cancelable/index.d.ts +0 -176
  536. package/node_modules/p-cancelable/index.js +0 -111
  537. package/node_modules/p-cancelable/license +0 -9
  538. package/node_modules/p-cancelable/package.json +0 -49
  539. package/node_modules/p-cancelable/readme.md +0 -153
  540. package/node_modules/pump/.github/FUNDING.yml +0 -2
  541. package/node_modules/pump/.travis.yml +0 -5
  542. package/node_modules/pump/LICENSE +0 -21
  543. package/node_modules/pump/README.md +0 -74
  544. package/node_modules/pump/SECURITY.md +0 -5
  545. package/node_modules/pump/index.js +0 -86
  546. package/node_modules/pump/package.json +0 -24
  547. package/node_modules/pump/test-browser.js +0 -66
  548. package/node_modules/pump/test-node.js +0 -53
  549. package/node_modules/quick-lru/index.d.ts +0 -97
  550. package/node_modules/quick-lru/index.js +0 -123
  551. package/node_modules/quick-lru/license +0 -9
  552. package/node_modules/quick-lru/package.json +0 -43
  553. package/node_modules/quick-lru/readme.md +0 -111
  554. package/node_modules/resolve-alpn/LICENSE +0 -22
  555. package/node_modules/resolve-alpn/README.md +0 -60
  556. package/node_modules/resolve-alpn/index.js +0 -43
  557. package/node_modules/resolve-alpn/package.json +0 -34
  558. package/node_modules/responselike/LICENSE +0 -19
  559. package/node_modules/responselike/README.md +0 -77
  560. package/node_modules/responselike/package.json +0 -39
  561. package/node_modules/responselike/src/index.js +0 -34
  562. package/node_modules/wrappy/LICENSE +0 -15
  563. package/node_modules/wrappy/README.md +0 -36
  564. package/node_modules/wrappy/package.json +0 -29
  565. package/node_modules/wrappy/wrappy.js +0 -33
package/.jsii CHANGED
@@ -7,10 +7,6 @@
7
7
  "author"
8
8
  ]
9
9
  },
10
- "bundled": {
11
- "got": "^11.8.6",
12
- "hpagent": "^0.1.2"
13
- },
14
10
  "dependencies": {
15
11
  "aws-cdk-lib": "^2.80.0",
16
12
  "constructs": "^10.0.5"
@@ -3472,7 +3468,7 @@
3472
3468
  },
3473
3469
  "name": "cdk-ecr-deployment",
3474
3470
  "readme": {
3475
- "markdown": "# cdk-ecr-deployment\n\n[![Release](https://github.com/cdklabs/cdk-ecr-deployment/actions/workflows/release.yml/badge.svg)](https://github.com/cdklabs/cdk-ecr-deployment/actions/workflows/release.yml)\n[![npm version](https://img.shields.io/npm/v/cdk-ecr-deployment)](https://www.npmjs.com/package/cdk-ecr-deployment)\n[![PyPI](https://img.shields.io/pypi/v/cdk-ecr-deployment)](https://pypi.org/project/cdk-ecr-deployment)\n[![npm](https://img.shields.io/npm/dw/cdk-ecr-deployment?label=npm%20downloads)](https://www.npmjs.com/package/cdk-ecr-deployment)\n[![PyPI - Downloads](https://img.shields.io/pypi/dw/cdk-ecr-deployment?label=pypi%20downloads)](https://pypi.org/project/cdk-ecr-deployment)\n\nCDK construct to synchronize single docker image between docker registries.\n\n**Only use v3 of this package**\n\n⚠️ Version 2.* is no longer supported, as the Go.1.x runtime is no longer supported in AWS Lambda.\\\n⚠️ Version 1.* is no longer supported, as CDK v1 has reached the end-of-life\nstage.\n\n## Features\n\n- Copy image from ECR/external registry to (another) ECR/external registry\n- Copy an archive tarball image from s3 to ECR/external registry\n\n## Environment variables\n\nEnable flags: `true`, `1`. e.g. `export CI=1`\n\n- `CI` indicate if it's CI environment. This flag will enable building lambda from scratch.\n- `NO_PREBUILT_LAMBDA` disable using prebuilt lambda.\n- `FORCE_PREBUILT_LAMBDA` force using prebuilt lambda.\n\n⚠️ If you want to force using prebuilt lambda in CI environment to reduce build time. Try `export FORCE_PREBUILT_LAMBDA=1`.\n\n## Examples\n\n```ts\nimport { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));\n```\n\n## Sample: [test/example.ecr-deployment.ts](./test/example.ecr-deployment.ts)\n\nAfter cloning the repository, install dependencies and run a full build:\n\n```console\nyarn --frozen-lockfile --check-files\nyarn build\n```\n\nThen run the example like this:\n\n```shell\n# Run the following command to try the sample.\nNO_PREBUILT_LAMBDA=1 npx cdk deploy -a \"npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/example.ecr-deployment.ts\"\n```\n\nTo run the DockerHub example you will first need to setup a Secret in AWS Secrets Manager to provide DockerHub credentials.\nReplace `username:access-token` with your credentials.\n**Please note that Secrets will occur a cost.**\n\n```console\naws secretsmanager create-secret --name DockerHubCredentials --secret-string \"username:access-token\"\n```\n\nFrom the output, copy the ARN of your new secret and export it as env variable\n\n```console\nexport DOCKERHUB_SECRET_ARN=\"<ARN>\"\n```\n\nFinally run:\n\n```shell\n# Run the following command to try the sample.\nnpx cdk deploy -a \"npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/dockerhub-example.ecr-deployment.ts\"\n```\n\nIf your Secret is encrypted, you might have to adjust the example to also grant decrypt permissions.\n\n## [API](./API.md)\n\n## Tech Details & Contribution\n\nThe core of this project relies on [containers/image](https://github.com/containers/image) which is used by [Skopeo](https://github.com/containers/skopeo).\nPlease take a look at those projects before contribution.\n\nTo support a new docker image source(like docker tarball in s3), you need to implement [image transport interface](https://github.com/containers/image/blob/master/types/types.go). You could take a look at [docker-archive](https://github.com/containers/image/blob/ccb87a8d0f45cf28846e307eb0ec2b9d38a458c2/docker/archive/transport.go) transport for a good start.\n\nAny error in the custom resource provider will show up in the CloudFormation error log as `Invalid PhysicalResourceId`, because of this: <https://github.com/aws/aws-lambda-go/issues/107>. You need to go into the CloudWatch Log Group to find the real error."
3471
+ "markdown": "# cdk-ecr-deployment\n\n[![Release](https://github.com/cdklabs/cdk-ecr-deployment/actions/workflows/release.yml/badge.svg)](https://github.com/cdklabs/cdk-ecr-deployment/actions/workflows/release.yml)\n[![npm version](https://img.shields.io/npm/v/cdk-ecr-deployment)](https://www.npmjs.com/package/cdk-ecr-deployment)\n[![PyPI](https://img.shields.io/pypi/v/cdk-ecr-deployment)](https://pypi.org/project/cdk-ecr-deployment)\n[![npm](https://img.shields.io/npm/dw/cdk-ecr-deployment?label=npm%20downloads)](https://www.npmjs.com/package/cdk-ecr-deployment)\n[![PyPI - Downloads](https://img.shields.io/pypi/dw/cdk-ecr-deployment?label=pypi%20downloads)](https://pypi.org/project/cdk-ecr-deployment)\n\nCDK construct to synchronize single docker image between docker registries.\n\n> [!IMPORTANT]\n>\n> Please use the latest version of this package, which is `v4`.\n>\n> (Older versions are no longer supported).\n\n## Features\n\n- Copy image from ECR/external registry to (another) ECR/external registry\n- Copy an archive tarball image from s3 to ECR/external registry\n\n## Examples\n\n```ts\nimport { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));\n```\n\n## Sample: [test/example.ecr-deployment.ts](./test/example.ecr-deployment.ts)\n\nAfter cloning the repository, install dependencies and run a full build:\n\n```console\nyarn --frozen-lockfile --check-files\nyarn build\n```\n\nThen run the example like this:\n\n```shell\n# Run the following command to try the sample.\nnpx cdk deploy -a \"npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/example.ecr-deployment.ts\"\n```\n\nTo run the DockerHub example you will first need to setup a Secret in AWS Secrets Manager to provide DockerHub credentials.\nReplace `username:access-token` with your credentials.\n**Please note that Secrets will occur a cost.**\n\n```console\naws secretsmanager create-secret --name DockerHubCredentials --secret-string \"username:access-token\"\n```\n\nFrom the output, copy the ARN of your new secret and export it as env variable\n\n```console\nexport DOCKERHUB_SECRET_ARN=\"<ARN>\"\n```\n\nFinally run:\n\n```shell\n# Run the following command to try the sample.\nnpx cdk deploy -a \"npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/dockerhub-example.ecr-deployment.ts\"\n```\n\nIf your Secret is encrypted, you might have to adjust the example to also grant decrypt permissions.\n\n## [API](./API.md)\n\n## Tech Details & Contribution\n\nThe core of this project relies on [containers/image](https://github.com/containers/image) which is used by [Skopeo](https://github.com/containers/skopeo).\nPlease take a look at those projects before contribution.\n\nTo support a new docker image source(like docker tarball in s3), you need to implement [image transport interface](https://github.com/containers/image/blob/master/types/types.go). You could take a look at [docker-archive](https://github.com/containers/image/blob/ccb87a8d0f45cf28846e307eb0ec2b9d38a458c2/docker/archive/transport.go) transport for a good start.\n\nAny error in the custom resource provider will show up in the CloudFormation error log as `Invalid PhysicalResourceId`, because of this: <https://github.com/aws/aws-lambda-go/issues/107>. You need to go into the CloudWatch Log Group to find the real error.\n"
3476
3472
  },
3477
3473
  "repository": {
3478
3474
  "type": "git",
@@ -3515,7 +3511,7 @@
3515
3511
  },
3516
3512
  "locationInModule": {
3517
3513
  "filename": "src/index.ts",
3518
- "line": 154
3514
+ "line": 106
3519
3515
  },
3520
3516
  "parameters": [
3521
3517
  {
@@ -3546,7 +3542,7 @@
3546
3542
  "kind": "class",
3547
3543
  "locationInModule": {
3548
3544
  "filename": "src/index.ts",
3549
- "line": 146
3545
+ "line": 98
3550
3546
  },
3551
3547
  "name": "DockerImageName",
3552
3548
  "properties": [
@@ -3559,7 +3555,7 @@
3559
3555
  "immutable": true,
3560
3556
  "locationInModule": {
3561
3557
  "filename": "src/index.ts",
3562
- "line": 155
3558
+ "line": 107
3563
3559
  },
3564
3560
  "name": "uri",
3565
3561
  "overrides": "cdk-ecr-deployment.IImageName",
@@ -3575,7 +3571,7 @@
3575
3571
  },
3576
3572
  "locationInModule": {
3577
3573
  "filename": "src/index.ts",
3578
- "line": 154
3574
+ "line": 106
3579
3575
  },
3580
3576
  "name": "creds",
3581
3577
  "optional": true,
@@ -3600,7 +3596,7 @@
3600
3596
  },
3601
3597
  "locationInModule": {
3602
3598
  "filename": "src/index.ts",
3603
- "line": 181
3599
+ "line": 133
3604
3600
  },
3605
3601
  "parameters": [
3606
3602
  {
@@ -3626,7 +3622,7 @@
3626
3622
  "kind": "class",
3627
3623
  "locationInModule": {
3628
3624
  "filename": "src/index.ts",
3629
- "line": 178
3625
+ "line": 130
3630
3626
  },
3631
3627
  "methods": [
3632
3628
  {
@@ -3635,7 +3631,7 @@
3635
3631
  },
3636
3632
  "locationInModule": {
3637
3633
  "filename": "src/index.ts",
3638
- "line": 250
3634
+ "line": 201
3639
3635
  },
3640
3636
  "name": "addToPrincipalPolicy",
3641
3637
  "parameters": [
@@ -3666,7 +3662,7 @@
3666
3662
  "kind": "interface",
3667
3663
  "locationInModule": {
3668
3664
  "filename": "src/index.ts",
3669
- "line": 11
3665
+ "line": 10
3670
3666
  },
3671
3667
  "name": "ECRDeploymentProps",
3672
3668
  "properties": [
@@ -3679,7 +3675,7 @@
3679
3675
  "immutable": true,
3680
3676
  "locationInModule": {
3681
3677
  "filename": "src/index.ts",
3682
- "line": 31
3678
+ "line": 19
3683
3679
  },
3684
3680
  "name": "dest",
3685
3681
  "type": {
@@ -3695,54 +3691,13 @@
3695
3691
  "immutable": true,
3696
3692
  "locationInModule": {
3697
3693
  "filename": "src/index.ts",
3698
- "line": 26
3694
+ "line": 14
3699
3695
  },
3700
3696
  "name": "src",
3701
3697
  "type": {
3702
3698
  "fqn": "cdk-ecr-deployment.IImageName"
3703
3699
  }
3704
3700
  },
3705
- {
3706
- "abstract": true,
3707
- "docs": {
3708
- "default": "- public.ecr.aws/sam/build-go1.x:latest",
3709
- "remarks": "Might be needed for local build if all images need to come from own registry.\n\nNote that image should use yum as a package manager and have golang available.",
3710
- "stability": "stable",
3711
- "summary": "Image to use to build Golang lambda for custom resource, if download fails or is not wanted."
3712
- },
3713
- "immutable": true,
3714
- "locationInModule": {
3715
- "filename": "src/index.ts",
3716
- "line": 22
3717
- },
3718
- "name": "buildImage",
3719
- "optional": true,
3720
- "type": {
3721
- "primitive": "string"
3722
- }
3723
- },
3724
- {
3725
- "abstract": true,
3726
- "docs": {
3727
- "stability": "stable",
3728
- "summary": "The environment variable to set."
3729
- },
3730
- "immutable": true,
3731
- "locationInModule": {
3732
- "filename": "src/index.ts",
3733
- "line": 107
3734
- },
3735
- "name": "environment",
3736
- "optional": true,
3737
- "type": {
3738
- "collection": {
3739
- "elementtype": {
3740
- "primitive": "string"
3741
- },
3742
- "kind": "map"
3743
- }
3744
- }
3745
- },
3746
3701
  {
3747
3702
  "abstract": true,
3748
3703
  "docs": {
@@ -3754,7 +3709,7 @@
3754
3709
  "immutable": true,
3755
3710
  "locationInModule": {
3756
3711
  "filename": "src/index.ts",
3757
- "line": 44
3712
+ "line": 32
3758
3713
  },
3759
3714
  "name": "imageArch",
3760
3715
  "optional": true,
@@ -3767,42 +3722,6 @@
3767
3722
  }
3768
3723
  }
3769
3724
  },
3770
- {
3771
- "abstract": true,
3772
- "docs": {
3773
- "default": "- bootstrap",
3774
- "stability": "stable",
3775
- "summary": "The name of the lambda handler."
3776
- },
3777
- "immutable": true,
3778
- "locationInModule": {
3779
- "filename": "src/index.ts",
3780
- "line": 102
3781
- },
3782
- "name": "lambdaHandler",
3783
- "optional": true,
3784
- "type": {
3785
- "primitive": "string"
3786
- }
3787
- },
3788
- {
3789
- "abstract": true,
3790
- "docs": {
3791
- "default": "- lambda.Runtime.PROVIDED_AL2023",
3792
- "stability": "stable",
3793
- "summary": "The lambda function runtime environment."
3794
- },
3795
- "immutable": true,
3796
- "locationInModule": {
3797
- "filename": "src/index.ts",
3798
- "line": 95
3799
- },
3800
- "name": "lambdaRuntime",
3801
- "optional": true,
3802
- "type": {
3803
- "fqn": "aws-cdk-lib.aws_lambda.Runtime"
3804
- }
3805
- },
3806
3725
  {
3807
3726
  "abstract": true,
3808
3727
  "docs": {
@@ -3814,7 +3733,7 @@
3814
3733
  "immutable": true,
3815
3734
  "locationInModule": {
3816
3735
  "filename": "src/index.ts",
3817
- "line": 55
3736
+ "line": 43
3818
3737
  },
3819
3738
  "name": "memoryLimit",
3820
3739
  "optional": true,
@@ -3832,7 +3751,7 @@
3832
3751
  "immutable": true,
3833
3752
  "locationInModule": {
3834
3753
  "filename": "src/index.ts",
3835
- "line": 62
3754
+ "line": 50
3836
3755
  },
3837
3756
  "name": "role",
3838
3757
  "optional": true,
@@ -3851,7 +3770,7 @@
3851
3770
  "immutable": true,
3852
3771
  "locationInModule": {
3853
3772
  "filename": "src/index.ts",
3854
- "line": 88
3773
+ "line": 76
3855
3774
  },
3856
3775
  "name": "securityGroups",
3857
3776
  "optional": true,
@@ -3874,7 +3793,7 @@
3874
3793
  "immutable": true,
3875
3794
  "locationInModule": {
3876
3795
  "filename": "src/index.ts",
3877
- "line": 69
3796
+ "line": 57
3878
3797
  },
3879
3798
  "name": "vpc",
3880
3799
  "optional": true,
@@ -3893,7 +3812,7 @@
3893
3812
  "immutable": true,
3894
3813
  "locationInModule": {
3895
3814
  "filename": "src/index.ts",
3896
- "line": 77
3815
+ "line": 65
3897
3816
  },
3898
3817
  "name": "vpcSubnets",
3899
3818
  "optional": true,
@@ -3913,7 +3832,7 @@
3913
3832
  "kind": "interface",
3914
3833
  "locationInModule": {
3915
3834
  "filename": "src/index.ts",
3916
- "line": 110
3835
+ "line": 79
3917
3836
  },
3918
3837
  "name": "IImageName",
3919
3838
  "properties": [
@@ -3927,7 +3846,7 @@
3927
3846
  "immutable": true,
3928
3847
  "locationInModule": {
3929
3848
  "filename": "src/index.ts",
3930
- "line": 116
3849
+ "line": 85
3931
3850
  },
3932
3851
  "name": "uri",
3933
3852
  "type": {
@@ -3943,7 +3862,7 @@
3943
3862
  },
3944
3863
  "locationInModule": {
3945
3864
  "filename": "src/index.ts",
3946
- "line": 126
3865
+ "line": 95
3947
3866
  },
3948
3867
  "name": "creds",
3949
3868
  "optional": true,
@@ -3966,7 +3885,7 @@
3966
3885
  },
3967
3886
  "locationInModule": {
3968
3887
  "filename": "src/index.ts",
3969
- "line": 169
3888
+ "line": 121
3970
3889
  },
3971
3890
  "parameters": [
3972
3891
  {
@@ -4007,7 +3926,7 @@
4007
3926
  "kind": "class",
4008
3927
  "locationInModule": {
4009
3928
  "filename": "src/index.ts",
4010
- "line": 158
3929
+ "line": 110
4011
3930
  },
4012
3931
  "name": "S3ArchiveName",
4013
3932
  "properties": [
@@ -4020,7 +3939,7 @@
4020
3939
  "immutable": true,
4021
3940
  "locationInModule": {
4022
3941
  "filename": "src/index.ts",
4023
- "line": 175
3942
+ "line": 127
4024
3943
  },
4025
3944
  "name": "uri",
4026
3945
  "overrides": "cdk-ecr-deployment.IImageName",
@@ -4036,7 +3955,7 @@
4036
3955
  },
4037
3956
  "locationInModule": {
4038
3957
  "filename": "src/index.ts",
4039
- "line": 169
3958
+ "line": 121
4040
3959
  },
4041
3960
  "name": "creds",
4042
3961
  "optional": true,
@@ -4049,6 +3968,6 @@
4049
3968
  "symbolId": "src/index:S3ArchiveName"
4050
3969
  }
4051
3970
  },
4052
- "version": "3.3.0",
4053
- "fingerprint": "XzAPB9yugJfIoHB8jl1sQ52xAQaBBjCs+msSSUDDIjY="
3971
+ "version": "4.0.0",
3972
+ "fingerprint": "t+72N+tfyMWWsP8VeibJ/vYMCwq4RfAeAx4mQTxkzYg="
4054
3973
  }
package/.jsii.tabl.json CHANGED
@@ -1 +1 @@
1
- {"version":"2","toolVersion":"5.7.8","snippets":{"88f2a76686f9322de44e83005e6c8c011aa9eec372ebd359095f8b90c3440a65":{"translations":{"python":{"source":"from aws_cdk.aws_ecr_assets import DockerImageAsset\n\n\nimage = DockerImageAsset(self, \"CDKDockerImage\",\n directory=path.join(__dirname, \"docker\")\n)\n\n# Copy from cdk docker image asset to another ECR.\necrdeploy.ECRDeployment(self, \"DeployDockerImage1\",\n src=ecrdeploy.DockerImageName(image.image_uri),\n dest=ecrdeploy.DockerImageName(f\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\")\n)\n\n# Copy from docker registry to ECR.\necrdeploy.ECRDeployment(self, \"DeployDockerImage2\",\n src=ecrdeploy.DockerImageName(\"nginx:latest\"),\n dest=ecrdeploy.DockerImageName(f\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\")\n)\n\n# Copy from private docker registry to ECR.\n# The format of secret in aws secrets manager must be either:\n# - plain text in format <username>:<password>\n# - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\necrdeploy.ECRDeployment(self, \"DeployDockerImage3\",\n src=ecrdeploy.DockerImageName(\"javacs3/nginx:latest\", \"username:password\"),\n # src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n # src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest=ecrdeploy.DockerImageName(f\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\")\n).add_to_principal_policy(iam.PolicyStatement(\n effect=iam.Effect.ALLOW,\n actions=[\"secretsmanager:GetSecretValue\"\n ],\n resources=[\"*\"]\n))","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.Ecr.Assets;\n\n\nvar image = new DockerImageAsset(this, \"CDKDockerImage\", new DockerImageAssetProps {\n Directory = Join(__dirname, \"docker\")\n});\n\n// Copy from cdk docker image asset to another ECR.\n// Copy from cdk docker image asset to another ECR.\nnew ECRDeployment(this, \"DeployDockerImage1\", new ECRDeploymentProps {\n Src = new DockerImageName(image.ImageUri),\n Dest = new DockerImageName($\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\")\n});\n\n// Copy from docker registry to ECR.\n// Copy from docker registry to ECR.\nnew ECRDeployment(this, \"DeployDockerImage2\", new ECRDeploymentProps {\n Src = new DockerImageName(\"nginx:latest\"),\n Dest = new DockerImageName($\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\")\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ECRDeployment(this, \"DeployDockerImage3\", new ECRDeploymentProps {\n Src = new DockerImageName(\"javacs3/nginx:latest\", \"username:password\"),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n Dest = new DockerImageName($\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\")\n}).AddToPrincipalPolicy(new PolicyStatement(new PolicyStatementProps {\n Effect = Effect.ALLOW,\n Actions = new [] { \"secretsmanager:GetSecretValue\" },\n Resources = new [] { \"*\" }\n}));","version":"1"},"java":{"source":"import software.amazon.awscdk.services.ecr.assets.DockerImageAsset;\n\n\nDockerImageAsset image = DockerImageAsset.Builder.create(this, \"CDKDockerImage\")\n .directory(join(__dirname, \"docker\"))\n .build();\n\n// Copy from cdk docker image asset to another ECR.\n// Copy from cdk docker image asset to another ECR.\nECRDeployment.Builder.create(this, \"DeployDockerImage1\")\n .src(new DockerImageName(image.getImageUri()))\n .dest(new DockerImageName(String.format(\"%s.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\", Aws.ACCOUNT_ID)))\n .build();\n\n// Copy from docker registry to ECR.\n// Copy from docker registry to ECR.\nECRDeployment.Builder.create(this, \"DeployDockerImage2\")\n .src(new DockerImageName(\"nginx:latest\"))\n .dest(new DockerImageName(String.format(\"%s.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\", Aws.ACCOUNT_ID)))\n .build();\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nECRDeployment.Builder.create(this, \"DeployDockerImage3\")\n .src(new DockerImageName(\"javacs3/nginx:latest\", \"username:password\"))\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n .dest(new DockerImageName(String.format(\"%s.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\", Aws.ACCOUNT_ID)))\n .build().addToPrincipalPolicy(PolicyStatement.Builder.create()\n .effect(Effect.ALLOW)\n .actions(List.of(\"secretsmanager:GetSecretValue\"))\n .resources(List.of(\"*\"))\n .build());","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nimage := awscdk.NewDockerImageAsset(this, jsii.String(\"CDKDockerImage\"), &DockerImageAssetProps{\n\tDirectory: path.join(__dirname, jsii.String(\"docker\")),\n})\n\n// Copy from cdk docker image asset to another ECR.\n// Copy from cdk docker image asset to another ECR.\necrdeploy.NewECRDeployment(this, jsii.String(\"DeployDockerImage1\"), &ECRDeploymentProps{\n\tSrc: ecrdeploy.NewDockerImageName(image.ImageUri),\n\tDest: ecrdeploy.NewDockerImageName(fmt.Sprintf(\"%v.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\", cdk.Aws_ACCOUNT_ID())),\n})\n\n// Copy from docker registry to ECR.\n// Copy from docker registry to ECR.\necrdeploy.NewECRDeployment(this, jsii.String(\"DeployDockerImage2\"), &ECRDeploymentProps{\n\tSrc: ecrdeploy.NewDockerImageName(jsii.String(\"nginx:latest\")),\n\tDest: ecrdeploy.NewDockerImageName(fmt.Sprintf(\"%v.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\", cdk.Aws_ACCOUNT_ID())),\n})\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\necrdeploy.NewECRDeployment(this, jsii.String(\"DeployDockerImage3\"), &ECRDeploymentProps{\n\tSrc: ecrdeploy.NewDockerImageName(jsii.String(\"javacs3/nginx:latest\"), jsii.String(\"username:password\")),\n\t// src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n\t// src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n\tDest: ecrdeploy.NewDockerImageName(fmt.Sprintf(\"%v.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\", cdk.Aws_ACCOUNT_ID())),\n}).AddToPrincipalPolicy(awscdk.Aws_iam.NewPolicyStatement(&PolicyStatementProps{\n\tEffect: awscdk.*Aws_iam.Effect_ALLOW,\n\tActions: []*string{\n\t\tjsii.String(\"secretsmanager:GetSecretValue\"),\n\t},\n\tResources: []*string{\n\t\tjsii.String(\"*\"),\n\t},\n}))","version":"1"},"$":{"source":"import { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-ecr-deployment"},"field":{"field":"markdown","line":34}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.aws_ecr_assets.DockerImageAsset","aws-cdk-lib.aws_ecr_assets.DockerImageAsset#imageUri","aws-cdk-lib.aws_ecr_assets.DockerImageAssetProps","aws-cdk-lib.aws_iam.Effect","aws-cdk-lib.aws_iam.Effect#ALLOW","aws-cdk-lib.aws_iam.PolicyStatement","aws-cdk-lib.aws_iam.PolicyStatementProps","cdk-ecr-deployment.DockerImageName","cdk-ecr-deployment.ECRDeployment","cdk-ecr-deployment.ECRDeployment#addToPrincipalPolicy","cdk-ecr-deployment.ECRDeploymentProps","cdk-ecr-deployment.IImageName"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\nimport { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport * as path from 'node:path';\nimport { Construct } from 'constructs';\n import * as ecrdeploy from 'cdk-ecr-deployment';\nimport {\n Stack,\n aws_iam as iam,\n} from 'aws-cdk-lib';\nimport * as cdk from 'aws-cdk-lib';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}","syntaxKindCounter":{"11":11,"16":3,"18":3,"80":51,"110":4,"209":2,"210":5,"211":21,"213":2,"214":11,"228":3,"239":3,"243":1,"244":3,"260":1,"261":1,"272":1,"273":1,"275":1,"276":1,"303":10,"307":1},"fqnsFingerprint":"b2b5036b1bfc508279d58dec7b8bdd00caa0f71123068dc963187960f976dddb"}}}
1
+ {"version":"2","toolVersion":"5.7.8","snippets":{"88f2a76686f9322de44e83005e6c8c011aa9eec372ebd359095f8b90c3440a65":{"translations":{"python":{"source":"from aws_cdk.aws_ecr_assets import DockerImageAsset\n\n\nimage = DockerImageAsset(self, \"CDKDockerImage\",\n directory=path.join(__dirname, \"docker\")\n)\n\n# Copy from cdk docker image asset to another ECR.\necrdeploy.ECRDeployment(self, \"DeployDockerImage1\",\n src=ecrdeploy.DockerImageName(image.image_uri),\n dest=ecrdeploy.DockerImageName(f\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\")\n)\n\n# Copy from docker registry to ECR.\necrdeploy.ECRDeployment(self, \"DeployDockerImage2\",\n src=ecrdeploy.DockerImageName(\"nginx:latest\"),\n dest=ecrdeploy.DockerImageName(f\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\")\n)\n\n# Copy from private docker registry to ECR.\n# The format of secret in aws secrets manager must be either:\n# - plain text in format <username>:<password>\n# - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\necrdeploy.ECRDeployment(self, \"DeployDockerImage3\",\n src=ecrdeploy.DockerImageName(\"javacs3/nginx:latest\", \"username:password\"),\n # src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n # src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest=ecrdeploy.DockerImageName(f\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\")\n).add_to_principal_policy(iam.PolicyStatement(\n effect=iam.Effect.ALLOW,\n actions=[\"secretsmanager:GetSecretValue\"\n ],\n resources=[\"*\"]\n))","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.Ecr.Assets;\n\n\nvar image = new DockerImageAsset(this, \"CDKDockerImage\", new DockerImageAssetProps {\n Directory = Join(__dirname, \"docker\")\n});\n\n// Copy from cdk docker image asset to another ECR.\n// Copy from cdk docker image asset to another ECR.\nnew ECRDeployment(this, \"DeployDockerImage1\", new ECRDeploymentProps {\n Src = new DockerImageName(image.ImageUri),\n Dest = new DockerImageName($\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\")\n});\n\n// Copy from docker registry to ECR.\n// Copy from docker registry to ECR.\nnew ECRDeployment(this, \"DeployDockerImage2\", new ECRDeploymentProps {\n Src = new DockerImageName(\"nginx:latest\"),\n Dest = new DockerImageName($\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\")\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ECRDeployment(this, \"DeployDockerImage3\", new ECRDeploymentProps {\n Src = new DockerImageName(\"javacs3/nginx:latest\", \"username:password\"),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n Dest = new DockerImageName($\"{cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\")\n}).AddToPrincipalPolicy(new PolicyStatement(new PolicyStatementProps {\n Effect = Effect.ALLOW,\n Actions = new [] { \"secretsmanager:GetSecretValue\" },\n Resources = new [] { \"*\" }\n}));","version":"1"},"java":{"source":"import software.amazon.awscdk.services.ecr.assets.DockerImageAsset;\n\n\nDockerImageAsset image = DockerImageAsset.Builder.create(this, \"CDKDockerImage\")\n .directory(join(__dirname, \"docker\"))\n .build();\n\n// Copy from cdk docker image asset to another ECR.\n// Copy from cdk docker image asset to another ECR.\nECRDeployment.Builder.create(this, \"DeployDockerImage1\")\n .src(new DockerImageName(image.getImageUri()))\n .dest(new DockerImageName(String.format(\"%s.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\", Aws.ACCOUNT_ID)))\n .build();\n\n// Copy from docker registry to ECR.\n// Copy from docker registry to ECR.\nECRDeployment.Builder.create(this, \"DeployDockerImage2\")\n .src(new DockerImageName(\"nginx:latest\"))\n .dest(new DockerImageName(String.format(\"%s.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\", Aws.ACCOUNT_ID)))\n .build();\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nECRDeployment.Builder.create(this, \"DeployDockerImage3\")\n .src(new DockerImageName(\"javacs3/nginx:latest\", \"username:password\"))\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n .dest(new DockerImageName(String.format(\"%s.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\", Aws.ACCOUNT_ID)))\n .build().addToPrincipalPolicy(PolicyStatement.Builder.create()\n .effect(Effect.ALLOW)\n .actions(List.of(\"secretsmanager:GetSecretValue\"))\n .resources(List.of(\"*\"))\n .build());","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nimage := awscdk.NewDockerImageAsset(this, jsii.String(\"CDKDockerImage\"), &DockerImageAssetProps{\n\tDirectory: path.join(__dirname, jsii.String(\"docker\")),\n})\n\n// Copy from cdk docker image asset to another ECR.\n// Copy from cdk docker image asset to another ECR.\necrdeploy.NewECRDeployment(this, jsii.String(\"DeployDockerImage1\"), &ECRDeploymentProps{\n\tSrc: ecrdeploy.NewDockerImageName(image.ImageUri),\n\tDest: ecrdeploy.NewDockerImageName(fmt.Sprintf(\"%v.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest\", cdk.Aws_ACCOUNT_ID())),\n})\n\n// Copy from docker registry to ECR.\n// Copy from docker registry to ECR.\necrdeploy.NewECRDeployment(this, jsii.String(\"DeployDockerImage2\"), &ECRDeploymentProps{\n\tSrc: ecrdeploy.NewDockerImageName(jsii.String(\"nginx:latest\")),\n\tDest: ecrdeploy.NewDockerImageName(fmt.Sprintf(\"%v.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest\", cdk.Aws_ACCOUNT_ID())),\n})\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\necrdeploy.NewECRDeployment(this, jsii.String(\"DeployDockerImage3\"), &ECRDeploymentProps{\n\tSrc: ecrdeploy.NewDockerImageName(jsii.String(\"javacs3/nginx:latest\"), jsii.String(\"username:password\")),\n\t// src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n\t// src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n\tDest: ecrdeploy.NewDockerImageName(fmt.Sprintf(\"%v.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest\", cdk.Aws_ACCOUNT_ID())),\n}).AddToPrincipalPolicy(awscdk.Aws_iam.NewPolicyStatement(&PolicyStatementProps{\n\tEffect: awscdk.*Aws_iam.Effect_ALLOW,\n\tActions: []*string{\n\t\tjsii.String(\"secretsmanager:GetSecretValue\"),\n\t},\n\tResources: []*string{\n\t\tjsii.String(\"*\"),\n\t},\n}))","version":"1"},"$":{"source":"import { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-ecr-deployment"},"field":{"field":"markdown","line":24}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.aws_ecr_assets.DockerImageAsset","aws-cdk-lib.aws_ecr_assets.DockerImageAsset#imageUri","aws-cdk-lib.aws_ecr_assets.DockerImageAssetProps","aws-cdk-lib.aws_iam.Effect","aws-cdk-lib.aws_iam.Effect#ALLOW","aws-cdk-lib.aws_iam.PolicyStatement","aws-cdk-lib.aws_iam.PolicyStatementProps","cdk-ecr-deployment.DockerImageName","cdk-ecr-deployment.ECRDeployment","cdk-ecr-deployment.ECRDeployment#addToPrincipalPolicy","cdk-ecr-deployment.ECRDeploymentProps","cdk-ecr-deployment.IImageName"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\nimport { DockerImageAsset } from 'aws-cdk-lib/aws-ecr-assets';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport * as path from 'node:path';\nimport { Construct } from 'constructs';\n import * as ecrdeploy from 'cdk-ecr-deployment';\nimport {\n Stack,\n aws_iam as iam,\n} from 'aws-cdk-lib';\nimport * as cdk from 'aws-cdk-lib';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst image = new DockerImageAsset(this, 'CDKDockerImage', {\n directory: path.join(__dirname, 'docker'),\n});\n\n// Copy from cdk docker image asset to another ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage1', {\n src: new ecrdeploy.DockerImageName(image.imageUri),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest`),\n});\n\n// Copy from docker registry to ECR.\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage2', {\n src: new ecrdeploy.DockerImageName('nginx:latest'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx2:latest`),\n});\n\n// Copy from private docker registry to ECR.\n// The format of secret in aws secrets manager must be either:\n// - plain text in format <username>:<password>\n// - json in format {\"username\":\"<username>\",\"password\":\"<password>\"}\nnew ecrdeploy.ECRDeployment(this, 'DeployDockerImage3', {\n src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'username:password'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'aws-secrets-manager-secret-name'),\n // src: new ecrdeploy.DockerImageName('javacs3/nginx:latest', 'arn:aws:secretsmanager:us-west-2:000000000000:secret:id'),\n dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/my-nginx3:latest`),\n}).addToPrincipalPolicy(new iam.PolicyStatement({\n effect: iam.Effect.ALLOW,\n actions: [\n 'secretsmanager:GetSecretValue',\n ],\n resources: ['*'],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}","syntaxKindCounter":{"11":11,"16":3,"18":3,"80":51,"110":4,"209":2,"210":5,"211":21,"213":2,"214":11,"228":3,"239":3,"243":1,"244":3,"260":1,"261":1,"272":1,"273":1,"275":1,"276":1,"303":10,"307":1},"fqnsFingerprint":"7ba534e81c675aa74e6af26093f3741ecc63faaccf2a1af5b0d5300a77f60a7d"}}}
package/API.md CHANGED
@@ -132,11 +132,7 @@ const eCRDeploymentProps: ECRDeploymentProps = { ... }
132
132
  | --- | --- | --- |
133
133
  | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.dest">dest</a></code> | <code><a href="#cdk-ecr-deployment.IImageName">IImageName</a></code> | The destination of the docker image. |
134
134
  | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.src">src</a></code> | <code><a href="#cdk-ecr-deployment.IImageName">IImageName</a></code> | The source of the docker image. |
135
- | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.buildImage">buildImage</a></code> | <code>string</code> | Image to use to build Golang lambda for custom resource, if download fails or is not wanted. |
136
- | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.environment">environment</a></code> | <code>{[ key: string ]: string}</code> | The environment variable to set. |
137
135
  | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.imageArch">imageArch</a></code> | <code>string[]</code> | The image architecture to be copied. |
138
- | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.lambdaHandler">lambdaHandler</a></code> | <code>string</code> | The name of the lambda handler. |
139
- | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.lambdaRuntime">lambdaRuntime</a></code> | <code>aws-cdk-lib.aws_lambda.Runtime</code> | The lambda function runtime environment. |
140
136
  | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.memoryLimit">memoryLimit</a></code> | <code>number</code> | The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket. |
141
137
  | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.role">role</a></code> | <code>aws-cdk-lib.aws_iam.IRole</code> | Execution role associated with this function. |
142
138
  | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.securityGroups">securityGroups</a></code> | <code>aws-cdk-lib.aws_ec2.SecurityGroup[]</code> | The list of security groups to associate with the Lambda's network interfaces. |
@@ -169,35 +165,6 @@ The source of the docker image.
169
165
 
170
166
  ---
171
167
 
172
- ##### `buildImage`<sup>Optional</sup> <a name="buildImage" id="cdk-ecr-deployment.ECRDeploymentProps.property.buildImage"></a>
173
-
174
- ```typescript
175
- public readonly buildImage: string;
176
- ```
177
-
178
- - *Type:* string
179
- - *Default:* public.ecr.aws/sam/build-go1.x:latest
180
-
181
- Image to use to build Golang lambda for custom resource, if download fails or is not wanted.
182
-
183
- Might be needed for local build if all images need to come from own registry.
184
-
185
- Note that image should use yum as a package manager and have golang available.
186
-
187
- ---
188
-
189
- ##### `environment`<sup>Optional</sup> <a name="environment" id="cdk-ecr-deployment.ECRDeploymentProps.property.environment"></a>
190
-
191
- ```typescript
192
- public readonly environment: {[ key: string ]: string};
193
- ```
194
-
195
- - *Type:* {[ key: string ]: string}
196
-
197
- The environment variable to set.
198
-
199
- ---
200
-
201
168
  ##### `imageArch`<sup>Optional</sup> <a name="imageArch" id="cdk-ecr-deployment.ECRDeploymentProps.property.imageArch"></a>
202
169
 
203
170
  ```typescript
@@ -217,32 +184,6 @@ at a time: the array you specify must contain exactly one string.
217
184
 
218
185
  ---
219
186
 
220
- ##### `lambdaHandler`<sup>Optional</sup> <a name="lambdaHandler" id="cdk-ecr-deployment.ECRDeploymentProps.property.lambdaHandler"></a>
221
-
222
- ```typescript
223
- public readonly lambdaHandler: string;
224
- ```
225
-
226
- - *Type:* string
227
- - *Default:* bootstrap
228
-
229
- The name of the lambda handler.
230
-
231
- ---
232
-
233
- ##### `lambdaRuntime`<sup>Optional</sup> <a name="lambdaRuntime" id="cdk-ecr-deployment.ECRDeploymentProps.property.lambdaRuntime"></a>
234
-
235
- ```typescript
236
- public readonly lambdaRuntime: Runtime;
237
- ```
238
-
239
- - *Type:* aws-cdk-lib.aws_lambda.Runtime
240
- - *Default:* lambda.Runtime.PROVIDED_AL2023
241
-
242
- The lambda function runtime environment.
243
-
244
- ---
245
-
246
187
  ##### `memoryLimit`<sup>Optional</sup> <a name="memoryLimit" id="cdk-ecr-deployment.ECRDeploymentProps.property.memoryLimit"></a>
247
188
 
248
189
  ```typescript
package/README.md CHANGED
@@ -8,27 +8,17 @@
8
8
 
9
9
  CDK construct to synchronize single docker image between docker registries.
10
10
 
11
- **Only use v3 of this package**
12
-
13
- ⚠️ Version 2.* is no longer supported, as the Go.1.x runtime is no longer supported in AWS Lambda.\
14
- ⚠️ Version 1.* is no longer supported, as CDK v1 has reached the end-of-life
15
- stage.
11
+ > [!IMPORTANT]
12
+ >
13
+ > Please use the latest version of this package, which is `v4`.
14
+ >
15
+ > (Older versions are no longer supported).
16
16
 
17
17
  ## Features
18
18
 
19
19
  - Copy image from ECR/external registry to (another) ECR/external registry
20
20
  - Copy an archive tarball image from s3 to ECR/external registry
21
21
 
22
- ## Environment variables
23
-
24
- Enable flags: `true`, `1`. e.g. `export CI=1`
25
-
26
- - `CI` indicate if it's CI environment. This flag will enable building lambda from scratch.
27
- - `NO_PREBUILT_LAMBDA` disable using prebuilt lambda.
28
- - `FORCE_PREBUILT_LAMBDA` force using prebuilt lambda.
29
-
30
- ⚠️ If you want to force using prebuilt lambda in CI environment to reduce build time. Try `export FORCE_PREBUILT_LAMBDA=1`.
31
-
32
22
  ## Examples
33
23
 
34
24
  ```ts
@@ -81,7 +71,7 @@ Then run the example like this:
81
71
 
82
72
  ```shell
83
73
  # Run the following command to try the sample.
84
- NO_PREBUILT_LAMBDA=1 npx cdk deploy -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/example.ecr-deployment.ts"
74
+ npx cdk deploy -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/example.ecr-deployment.ts"
85
75
  ```
86
76
 
87
77
  To run the DockerHub example you will first need to setup a Secret in AWS Secrets Manager to provide DockerHub credentials.
@@ -116,4 +106,4 @@ Please take a look at those projects before contribution.
116
106
 
117
107
  To support a new docker image source(like docker tarball in s3), you need to implement [image transport interface](https://github.com/containers/image/blob/master/types/types.go). You could take a look at [docker-archive](https://github.com/containers/image/blob/ccb87a8d0f45cf28846e307eb0ec2b9d38a458c2/docker/archive/transport.go) transport for a good start.
118
108
 
119
- Any error in the custom resource provider will show up in the CloudFormation error log as `Invalid PhysicalResourceId`, because of this: <https://github.com/aws/aws-lambda-go/issues/107>. You need to go into the CloudWatch Log Group to find the real error.
109
+ Any error in the custom resource provider will show up in the CloudFormation error log as `Invalid PhysicalResourceId`, because of this: <https://github.com/aws/aws-lambda-go/issues/107>. You need to go into the CloudWatch Log Group to find the real error.
package/lib/index.d.ts CHANGED
@@ -1,17 +1,7 @@
1
- import { aws_ec2 as ec2, aws_iam as iam, aws_lambda as lambda } from 'aws-cdk-lib';
1
+ import { aws_ec2 as ec2, aws_iam as iam } from 'aws-cdk-lib';
2
2
  import { PolicyStatement, AddToPrincipalPolicyResult } from 'aws-cdk-lib/aws-iam';
3
3
  import { Construct } from 'constructs';
4
4
  export interface ECRDeploymentProps {
5
- /**
6
- * Image to use to build Golang lambda for custom resource, if download fails or is not wanted.
7
- *
8
- * Might be needed for local build if all images need to come from own registry.
9
- *
10
- * Note that image should use yum as a package manager and have golang available.
11
- *
12
- * @default - public.ecr.aws/sam/build-go1.x:latest
13
- */
14
- readonly buildImage?: string;
15
5
  /**
16
6
  * The source of the docker image.
17
7
  */
@@ -71,24 +61,6 @@ export interface ECRDeploymentProps {
71
61
  * group will be created for this function.
72
62
  */
73
63
  readonly securityGroups?: ec2.SecurityGroup[];
74
- /**
75
- * The lambda function runtime environment.
76
- *
77
- * @default - lambda.Runtime.PROVIDED_AL2023
78
- */
79
- readonly lambdaRuntime?: lambda.Runtime;
80
- /**
81
- * The name of the lambda handler.
82
- *
83
- * @default - bootstrap
84
- */
85
- readonly lambdaHandler?: string;
86
- /**
87
- * The environment variable to set
88
- */
89
- readonly environment?: {
90
- [key: string]: string;
91
- };
92
64
  }
93
65
  export interface IImageName {
94
66
  /**