Code Monkey home page Code Monkey logo

serverless-slack-cloudfront-bot's Introduction

CloudFront Bot

CloudFront Bot is a Serverless-powered Slack bot that can invalidate assets in CloudFront distributions.

Usage

/cloudfront https://foobar.com.au/asset.png

Features

  • You only need to provide a URL, the bot will look up the CloudFront distribution ID for you
  • Can query multiple accounts until it finds the right CloudFront distribution
  • Logging and auditing of all requests made to it

Deployment

serverless-slack-cloudfront-bot's People

Contributors

aarongorka avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

amaysim-au

serverless-slack-cloudfront-bot's Issues

Problems deploying into serverless

Hey. First of all I just wanted to test this project that really fits my needs. I'm not able to deploy it. I created an account in Serverless and installed all the Linux packages and dependencies. When I try to deploy it, I get (can you please help me with the error?):

serverless --template-url=https://github.com/aarongorka/serverless-slack-cloudfront-bot

Creating a new serverless project

? What do you want to call this project? serverless-slack-cloudfront

โœ” Project successfully created in serverless-slack-cloudfront folder
Environment: darwin, node 18.11.0, framework 3.23.0, plugin 6.2.2, SDK 4.3.2
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues

Error:
Variables resolution errored with:

  • Cannot resolve variable at "provider.stage": Value not found at "env" source,
  • Cannot resolve variable at "provider.deploymentBucket.name": Value not found at "env" source,
  • Cannot resolve variable at "provider.region": Value not found at "env" source,
  • Cannot resolve variable at "provider.iamRoleStatements.0.Resource.Fn::Sub": Value not found at "env" source,
  • Cannot resolve variable at "provider.environment.ENV": Value not found at "env" source,
  • Cannot resolve variable at "provider.environment.LOGLEVEL": Value not found at "env" source,
  • Cannot resolve variable at "provider.environment.REALM": Value not found at "env" source,
  • Cannot resolve variable at "provider.environment.BOT_AWS_ROLE": Value not found at "env" source,
  • Cannot resolve variable at "provider.environment.BOT_AWS_ACCOUNTS": Value not found at "env" source,
  • Cannot resolve variable at "provider.environment.INVALIDATE_HANDLER": Value not found at "env" source,
  • Cannot resolve variable at "custom.logForwarding.destinationARN.Fn::ImportValue": Value not found at "env" source,
  • Cannot resolve variable at "custom.alerts.topics.ok": Value not found at "env" source,
  • Cannot resolve variable at "custom.alerts.topics.alarm": Value not found at "env" source,
  • Cannot resolve variable at "custom.alerts.topics.insufficientData": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.DomainName.Properties.CertificateArn": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.DomainName.Properties.DomainName": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.BasePathMapping.Properties.Stage": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.RecordSet.Properties.HostedZoneName": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.RecordSet.Properties.Name": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.RecordSetAAAA.Properties.HostedZoneName": Value not found at "env" source,
  • Cannot resolve variable at "resources.Resources.RecordSetAAAA.Properties.Name": Value not found at "env" source,
  • Cannot resolve variable at "resources.Outputs.LambdaUrl.Value": Value not found at "env" source

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.