This file contains 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
#!/bin/bash | |
# Run terraform state list command and store output in a variable | |
TF_STATE_LIST=$(terraform state list) | |
# Check if the TF_STATE_LIST variable is empty | |
if [ -z "$TF_STATE_LIST" ]; then | |
echo "No resources to remove from state." | |
exit 0 | |
fi |
This file contains 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
const logger = require('./logger'); | |
const { httpStatus } = require('../configs/codes'); | |
const { errorResponse } = require('./response'); | |
const wrap = fn => (req, res) => { | |
const idRequest = req.request_id; | |
const { | |
baseUrl, | |
originalUrl, | |
method, |
This file contains 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 logo from './logo.svg'; | |
import { EditorState } from 'draft-js'; | |
import { Editor } from 'react-draft-wysiwyg'; | |
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'; | |
import { stateToHTML } from 'draft-js-export-html'; | |
import axios from 'axios' | |