SAM template for a Bref HTTP application:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
diff --git a/Mail/Message.php b/Mail/Message.php | |
index 1f423e801087..0e4d79aac933 100644 | |
--- a/Mail/Message.php | |
+++ b/Mail/Message.php | |
@@ -171,7 +171,6 @@ private function createMimeFromString($body, $messageType) | |
$part = new Part($body); | |
$part->setCharset($this->zendMessage->getEncoding()); | |
$part->setEncoding(Mime::ENCODING_QUOTEDPRINTABLE); | |
- $part->setDisposition(Mime::DISPOSITION_INLINE); | |
$part->setType($messageType); |
<?php | |
declare(strict_types=1); | |
namespace FunctionalTest; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use PHPUnit\Framework\TestCase; | |
use Psr\Container\ContainerInterface; |
/* eslint-disable no-useless-escape */ | |
const Encore = require('@symfony/webpack-encore'); | |
const TerserPlugin = require('terser-webpack-plugin'); | |
const CircularDependencyPlugin = require('circular-dependency-plugin'); | |
const HtmlCriticalWebpackPlugin = require('html-critical-webpack-plugin'); | |
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const PurgeCssPlugin = require('purgecss-webpack-plugin'); | |
const WebpackBar = require('webpackbar'); | |
const path = require('path'); |
self.__serviceWorkerManifest= [ | |
// This is the HTML file that we initial load, we normalize | |
// any Slack client URL to request this same file | |
{ | |
url: "/boot/client.html", | |
hash: "52de82b6a380a284b31a6e7be0999050" | |
// Of course our JS and CSS assets are cached | |
}, { | |
url: "https://a.slack-edge.com/bv1-6-9b2646d/client-lazy-components.2ce886f.cache-gantry-1565714987.min.js", | |
hash: "2ce886f1b462f7437012" |
SAM template for a Bref HTTP application:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
#!/bin/sh | |
sudo yum install -y https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm | |
sudo yum install -y mysql-community-client |
import axios from 'axios' | |
let myData = [{id: 0}, {id: 1}, {id: 2}, {id: 3}] | |
async function fetchData(dataSet) { | |
for(entry of dataSet) { | |
const result = await axios.get(`https://ironhack-pokeapi.herokuapp.com/pokemon/${entry.id}`) | |
const newData = result.data | |
updateData(newData) | |
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
It is a best practice to not have the CodeDeploy Agent baked into the AMI because AWS will update to new versions quite often. Once they deprecate a version, the AMI will stop being able to deploy new instances, therefore breaking the whole pipeline.
Instead, AWS recommends this CodeDeploy Agent install to be set as User Data
within the EC2 Launch Configuration. Because we use CodePipline, CodeDeploy, Auto Scaling Groups, and Load Balancers, we need to change many interlaced pieces.
#!/bin/sh | |
set -e | |
# because 409 is not a transient error, the curl param --retry wont effect it. | |
MAX_RETRIES=5 | |
SLEEP_SECONDS=6 | |
RETRY_ON_HTTPCODE=409 | |
TEMPFILE=/tmp/executecurl-temp.$$ |