Skip to content

Commit

Permalink
Support solution v4 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog authored Oct 1, 2024
1 parent a376c46 commit acf50aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const filterUndefined = <A>(items: Array<A | undefined>): Array<A> => {
};

const getTemplateUrl = (version: string): string => {
return `https://s3.amazonaws.com/solutions-reference/aws-waf-security-automations/${version}/aws-waf-security-automations.template`;
if (version.startsWith('v3.')) {
return `https://s3.amazonaws.com/solutions-reference/aws-waf-security-automations/${version}/aws-waf-security-automations.template`;
}
return `https://s3.amazonaws.com/solutions-reference/security-automations-for-aws-waf/${version}/aws-waf-security-automations.template`;
};

interface CloudformationParameter {
Expand Down

0 comments on commit acf50aa

Please sign in to comment.