- Create a bucket policy
- Verify the difference between policy and roles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function: | |
| foo: | |
| handler: index.handler | |
| # Ways to reference function in serverless.yml | |
| FunctionName: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service.name}-${self:provider.stage}-foo | |
| FunctionName: !GetAtt FooLambdaFunction.Arn | |
| FunctionName: !Sub "${AWS::StackName}-foo" | |
| FunctionName: ${self:service.name}-${self:provider.stage}-foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #service-name=$(aws ecs list-services --cluster $CLUSTER_NAME --profile 2cloudb | jq -r '.serviceArns | map(. | select(. | contains("React")))[0] | split("/")[1]') | |
| ALL_SERVICES=$(aws ecs list-services --cluster $CLUSTER_NAME --profile 2cloudb | jq -r '.serviceArns | map(. | split("/")[1]) | @sh') | |
| #SERVICE_BY_NAME=$(aws ecs list-services --cluster $CLUSTER_NAME --profile $PROFILE_AWS | jq -r --arg name "$1" '.serviceArns | map(. | select(. | ascii_downcase | contains($name)))[0] | split("/")[1]'); | |
| for SERVICE in $ALL_SERVICES; do | |
| echo "Atualizando o Service: ${SERVICE//\'/}" | |
| PARSED_SERVICE=${SERVICE//\'/} | |
| aws ecs update-service --cluster immail1 --service $PARSED_SERVICE --force-new-deployment --profile $PROFILE_AWS & |
- Create a bucket policy
- Verify the difference between policy and roles
- Create a bucket policy
- Verify the difference between policy and roles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const ejs = require('ejs'); | |
| /** | |
| * | |
| * Cria os arquivos de environment a partir de variáveis de ambiente |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| let queryParam = new URLSearchParams(); | |
| let objTeste = { | |
| name: "gilluan", | |
| age: "idade" | |
| } | |
| const isObjectEmpty = (obj) => { | |
| return !obj[Object.keys(obj)[0]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import Route from "react-router-dom/Route"; | |
| import Redirect from "react-router-dom/Redirect"; | |
| import { connect } from "react-redux"; | |
| import withRouter from "react-router-dom/withRouter"; | |
| import { verifyToken } from '../actions/index' | |
| class PrivateRouteContainer extends React.Component { | |
| componentDidMount() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component} from "react"; | |
| import { withFormik, Field } from "formik"; | |
| import Yup from "yup"; | |
| import FlatButton from "material-ui/FlatButton"; | |
| import TextField from 'material-ui/TextField' | |
| import SelectField from 'material-ui/SelectField' | |
| import MenuItem from 'material-ui/MenuItem' | |
| const CustomInputComponent = ({ | |
| field, |
NewerOlder