{"_id":"@98kb/ecr-image-tagger-construct","_rev":"3-7ac1690d757d8946acdc59921a7ec733","name":"@98kb/ecr-image-tagger-construct","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@98kb/ecr-image-tagger-construct","version":"1.0.0","keywords":["aws-cdk","construct","ecr","docker","image-tagging","cloudformation"],"author":{"name":"dsfx3d"},"license":"MIT","_id":"@98kb/ecr-image-tagger-construct@1.0.0","maintainers":[{"name":"dsfx3d","email":"dsfx3d@gmail.com"}],"homepage":"https://github.com/98kb/aws/tree/main/packages/ecr-image-tagger-construct#98kbecr-image-tagger-construct","bugs":{"url":"https://github.com/98kb/aws/issues"},"dist":{"shasum":"ccf9ce3a21274acd50644f79f219b3466d2341b5","tarball":"https://registry.npmjs.org/@98kb/ecr-image-tagger-construct/-/ecr-image-tagger-construct-1.0.0.tgz","fileCount":5,"integrity":"sha512-joPQDqnnIM9imWXT60uE1JQhiflK+6V+TOmySyohEVN1HWThW/4P36gJ2NXAkT+4sp1Nw42AiqOYTEQtp2RMug==","signatures":[{"sig":"MEUCIQDKS4ziFzMx8e4owYlEa0Gcf6+j/N9Sa9U/sDc3mlTPWgIgSh4x0bguMQeOpTwGV0S+jKclGJMvO9W43tkAX76qgS8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15822},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"69e74fdaccd0fd4d172443c15880a35095b10fe2","scripts":{"dev":"tsup src/index.ts --watch","build":"tsup src/index.ts","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"dsfx3d","email":"dsfx3d@gmail.com"},"repository":{"url":"git+https://github.com/98kb/aws.git"},"_npmVersion":"10.9.0","description":"An AWS CDK construct for automated ECR image tagging with stage tags during deployment.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"constructs":"^10.4.2","aws-cdk-lib":"^2.201.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0","devDependencies":{"tsup":"^8.5.0","typescript":"^5.0.0","@types/node":"^18.0.0"},"peerDependencies":{"constructs":"^10.4.2","aws-cdk-lib":"^2.201.0"},"_npmOperationalInternal":{"tmp":"tmp/ecr-image-tagger-construct_1.0.0_1754932863830_0.08744983643240123","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@98kb/ecr-image-tagger-construct","version":"1.0.1","keywords":["aws-cdk","construct","ecr","docker","image-tagging","cloudformation"],"author":{"name":"dsfx3d"},"license":"MIT","_id":"@98kb/ecr-image-tagger-construct@1.0.1","maintainers":[{"name":"dsfx3d","email":"dsfx3d@gmail.com"}],"homepage":"https://github.com/98kb/aws/tree/main/packages/ecr-image-tagger-construct#98kbecr-image-tagger-construct","bugs":{"url":"https://github.com/98kb/aws/issues"},"dist":{"shasum":"b09d22f3f793f7022ea16e173ae9ea0fd213769d","tarball":"https://registry.npmjs.org/@98kb/ecr-image-tagger-construct/-/ecr-image-tagger-construct-1.0.1.tgz","fileCount":22,"integrity":"sha512-zMg4zAEbcMeIZc46DI8utdScZ4Lz8a9SRp+z8MbMcumjXVmg66xLesoviS5b0HA874MAbNq9jA0fG5XDzZCXiA==","signatures":[{"sig":"MEQCIH8q+jM300B888yzecpMkQ4tkujpu1uX43p/kju4T9WuAiB7ANWl2g7JSY27u5+OgOetvOy7llnanHduutX1gCbKGg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94546},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"c66f825af8f8c3416cd9922489404d8381d60c6e","scripts":{"dev":"tsup src/index.ts --watch","build":"tsup src/index.ts","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"dsfx3d","email":"dsfx3d@gmail.com"},"repository":{"url":"git+https://github.com/98kb/aws.git"},"_npmVersion":"10.9.0","description":"An AWS CDK construct for automated ECR image tagging with stage tags during deployment.","directories":{},"_nodeVersion":"22.12.0","dependencies":{"constructs":"^10.4.2","aws-cdk-lib":"^2.201.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.11.0","devDependencies":{"tsup":"^8.5.0","typescript":"^5.0.0","@types/node":"^18.0.0"},"peerDependencies":{"constructs":"^10.4.2","aws-cdk-lib":"^2.201.0"},"_npmOperationalInternal":{"tmp":"tmp/ecr-image-tagger-construct_1.0.1_1755075172023_0.0015441743351591875","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@98kb/ecr-image-tagger-construct","version":"1.0.2","description":"An AWS CDK construct for automated ECR image tagging with stage tags during deployment.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsup src/index.ts","typecheck":"tsc --noEmit","dev":"tsup src/index.ts --watch","clean":"rm -rf dist"},"keywords":["aws-cdk","construct","ecr","docker","image-tagging","cloudformation"],"author":{"name":"dsfx3d"},"repository":{"url":"git+https://github.com/98kb/aws.git"},"homepage":"https://github.com/98kb/aws/tree/main/packages/ecr-image-tagger-construct#98kbecr-image-tagger-construct","publishConfig":{"access":"public"},"license":"MIT","packageManager":"pnpm@10.11.0","dependencies":{"aws-cdk-lib":"^2.201.0","constructs":"^10.4.2"},"devDependencies":{"@types/node":"^18.0.0","tsup":"^8.5.0","typescript":"^5.0.0"},"peerDependencies":{"aws-cdk-lib":"^2.201.0","constructs":"^10.4.2"},"engines":{"node":">=18.0.0"},"_id":"@98kb/ecr-image-tagger-construct@1.0.2","gitHead":"355fd9cf33424224a5d8cdc9bea22c21d56ec295","bugs":{"url":"https://github.com/98kb/aws/issues"},"_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-XeKiCH4fVRXFmXyqzV9M5BhBCyulk/w4rP3e7duFFsZ7PeqTvn2A7bT2L2fexhvUAz2/cMXLVGvHLQhP6Pfn+A==","shasum":"5b9efc7500fe41f91c9a6d2e5190b4c9bcfec375","tarball":"https://registry.npmjs.org/@98kb/ecr-image-tagger-construct/-/ecr-image-tagger-construct-1.0.2.tgz","fileCount":22,"unpackedSize":94690,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAOzih7EEVrbrkM7s22CpDVq1JG9Fpno68Iua0XCl306AiAUkj/dv2VZFUS7CPm2mM5FULmJpWljKXbkq+0isdH6zg=="}]},"_npmUser":{"name":"dsfx3d","email":"dsfx3d@gmail.com"},"directories":{},"maintainers":[{"name":"dsfx3d","email":"dsfx3d@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ecr-image-tagger-construct_1.0.2_1755080029672_0.8874603467190583"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-11T17:21:03.721Z","modified":"2025-08-13T10:13:50.039Z","1.0.0":"2025-08-11T17:21:04.035Z","1.0.1":"2025-08-13T08:52:52.214Z","1.0.2":"2025-08-13T10:13:49.860Z"},"bugs":{"url":"https://github.com/98kb/aws/issues"},"author":{"name":"dsfx3d"},"license":"MIT","homepage":"https://github.com/98kb/aws/tree/main/packages/ecr-image-tagger-construct#98kbecr-image-tagger-construct","keywords":["aws-cdk","construct","ecr","docker","image-tagging","cloudformation"],"repository":{"url":"git+https://github.com/98kb/aws.git"},"description":"An AWS CDK construct for automated ECR image tagging with stage tags during deployment.","maintainers":[{"name":"dsfx3d","email":"dsfx3d@gmail.com"}],"readme":"# ECR Image Tagger Construct\n\nAWS CDK construct for automated ECR image tagging with stage tags during deployment.\n\n## Usage\n\n```typescript\nimport { EcrImageTaggerConstruct } from '@mapp/ecr-image-tagger-construct';\n\nconst tagger = new EcrImageTaggerConstruct(this, 'EcrTagger', {\n  repositoryName: 'my-app-repository',\n  imageTag: '1.2.0',\n  stageTag: 'prod',\n  region: 'us-east-1' // optional\n});\n\n// Ensure tagging happens after successful deployment\nmyService.node.addDependency(tagger.customResource);\n```\n\n## Properties\n\n```typescript\ninterface EcrImageTaggerProps {\n  repositoryName: string;  // ECR repository name\n  imageTag: string;        // Source image tag to duplicate\n  stageTag: string;        // Stage tag to apply (e.g., 'dev', 'uat', 'prod')\n  region?: string;         // AWS region (defaults to current region)\n}\n```\n\n## How it Works\n\n1. Retrieves the digest of the image being deployed\n2. Finds and removes the stage tag from any image currently using it\n3. Applies the stage tag to the new image being deployed\n\nEach stage tag can only exist on one image at a time, but a single image can have multiple stage tags if deployed to multiple environments.\n\n## Development\n\n```bash\npnpm run build      # Build the construct\n```\n\n## IAM Permissions\n\nThe construct automatically creates the necessary IAM permissions for ECR operations.\n","readmeFilename":"README.md"}