UNPKG

haven-secrets-core

Version:

Core for Haven, the easy to use centralized secrets manager.

15 lines (12 loc) 486 B
import { createHavenCloudFormation } from "../services.js"; const createStack = async (stackName, template) => { const params = { StackName: stackName, TemplateBody: template, Capabilities: ["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM"], }; const cloudformation = createHavenCloudFormation(); await cloudformation.createStack(params).promise(); return cloudformation.waitFor("stackCreateComplete", { StackName: stackName }).promise(); }; export default createStack;