Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPFS Pool Cache #4

Merged
merged 8 commits into from
Oct 6, 2021
Merged

IPFS Pool Cache #4

merged 8 commits into from
Oct 6, 2021

Conversation

snreynolds
Copy link
Member

checkpointing the pool cache deploy on ipfs

bin/app.ts Outdated Show resolved Hide resolved
bin/stacks/routing-caching-stack.ts Outdated Show resolved Hide resolved
bin/app.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
@snreynolds snreynolds marked this pull request as ready for review October 5, 2021 21:44
bin/app.ts Outdated Show resolved Hide resolved
@@ -37,6 +47,13 @@ export class RoutingCachingStack extends cdk.NestedStack {
],
});

lambdaRole.addToPolicy(
new PolicyStatement({
resources: [route53Arn!],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still deploy if route53Arn is undefined? I think IAM does some basic validation of policies during deployment so I would expect the deployment to fail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I'm not sure.. should we make it a required variable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove it from your .env and do a test deploy to see.

If it is required, you can just put this in an if (stage == Stage.beta)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok will do!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we'd need to require the route53 arn so I just wrapped it in an if statement


// init route53 with credentials
let data;
var route53 = new Route53();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to it let route53 since we redefine it below with the credentials

lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
lib/cron/cache-pools-ipfs.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@willpote willpote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

bin/stacks/routing-caching-stack.ts Outdated Show resolved Hide resolved
@snreynolds snreynolds merged commit b65e8f2 into main Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants