Skip to content

Commit

Permalink
chore: set aws owner as environment for getImages
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 committed Oct 3, 2024
1 parent eeae904 commit 410d926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command-handler/src/util/aws/get-aws-images.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import 'dotenv/config';
import { EC2Client, DescribeImagesCommand } from "@aws-sdk/client-ec2";

export default async function getAwsImages({ region }) {
const client = new EC2Client({ region });
const input = {
Owners: ['self']
Owners: [process.env.AWS_AMI_OWNER_ACCOUNT_ID]
};

const command = new DescribeImagesCommand(input);
Expand Down

0 comments on commit 410d926

Please sign in to comment.