Blockscout
SupportWebsiteGithubDiscord
  • Blockscout Open-Source Explorer
  • 💡About BlockScout
    • Features
      • Ethereum Bytecode Database Microservice
      • Blockscout Redesign
    • Chains Using Blockscout
    • Partners & Integrations
      • RaaS Providers
      • Vera: Verifier Alliance
        • Adding your chain to the Vera database
        • Programmatic verification via the API
    • News & Media
      • Newsletter & Blog
    • Funding
      • L2 Funding Proposal
        • Aux Funding Images
    • Roadmap
  • 🙎Using Blockscout
    • Getting Started
      • Glossary of Terms
      • Main Menu
      • Blocks
      • Transaction Types
      • Beacon Chain Withdrawal Views
    • My Account
      • Watch list
      • Private tags
      • Public tags
      • API keys
      • Custom ABI
      • Verified addresses
        • Copy and Sign Message
      • For developers
    • Dappscout Apps Marketplace
      • DApp Integration
    • Swapscout
      • Earn Merits when using Swapscout
    • Revokescout
    • Autoscout Explorer Launchpad
    • CSV Exports
    • Token Support
      • ERC-1155 Support
    • Merits
      • Streak rewards
      • Activity Pass
      • Leaderboard
      • Badges
      • FAQs
  • 👩‍💻Developer Support
    • For Web3 Developers
    • Link to Blockscout
    • Blockscout APIs
      • Requests & Limits
      • REST API Endpoints
        • Stats API
        • Interpreter API
      • JSON RPC & ETH Compatible RPC Endpoints
        • Account
        • Block
        • Contract
        • Logs
        • Stats
        • Token
        • Transaction
        • ETH RPC API
      • GraphQL in Blockscout
    • Smart Contract Verification
      • Blockscout UI
      • Blockscout smart-contract verification API
      • Hardhat Verification Plugin
        • Sourcify Plugin for Hardhat
      • Foundry Verification
      • Sourcify Verification
      • OpenZeppelin Contract Verification
      • Automate verifications with Catapulta
      • Verification via thirdweb
      • Interacting with Smart Contracts
    • Blockscout SDK
    • Integrate Merits
    • Chainscout chains list
  • 🏃‍♂️Setup and Run Blockscout
    • General Overview
      • Separate Indexer, Web App, and API
      • Umbrella Project Organization
      • Indexer Architecture Overview
      • ShareLock
      • EVM Version Information
    • Requirements
      • General Backend Requirements / Blockscout Backend Prerequisites
      • Backend/Frontend Compatibility Matrix
      • Hardware & Hosting Requirements
      • Database Storage Requirements
      • Client Setting Requirements
      • Node Tracing / JSON RPC Requirements
      • L2 -> L1 JSON-RPC Method Requests
    • ☑️ENV Variables
      • Backend ENVs: Common
      • Backend ENVs: Chain-Specific
      • Backend ENVs: Integrations
      • Frontend ENVs: Common
        • ENVs
        • Deprecated ENVs
      • Deprecated Backend ENVs
        • Previous ENV Variable Home Page
    • Deployment
      • ⭐Manual Deployment Guide
        • Ubuntu Setup
        • MacOS setup
      • ⭐Docker-compose Deployment
      • ⭐Kubernetes Deployment
      • Rollup Deployment
      • 🌟Cosmos-based chains
      • 🍀Upgrade Guide (v7.0 & v8.0)
      • Frontend Migration
        • All-In-One Container
        • Separate Frontend
        • Customized Backend
        • Proxy Setup
        • FAQs
      • Manual Deployment (backend + old UI)
        • Manual cleaning an instance from the previous deployment
      • Terraform Deployment
      • Ansible Deployment (AWS Cloud)
        • Overview
        • Prerequisites
        • AWS Permissions & Settings
          • Creating a Secret Key Pair
          • Login with AWS CLI
          • Creating an AWS certificate for SSL
          • Manually Cleaning Terraform Related Instances
        • Variables
        • Deploying the Blockscout Infrastructure
        • Deploying Blockscout
        • Destroying Provisioned Infrastructure
        • Common Additional Tasks
        • Common Errors and Questions
        • AWS Marketplace (deprecated)
          • Overview
          • CloudFormation Template
          • Prerequisites & Install Parameters
          • Install from AWS Marketplace
          • AWS EC2 archive node setup with OpenEthereum (formerly Parity)
          • Updating & Redeploying in AWS
          • Customizing CSS
    • Microservices
      • Blockscout ENS (BENS) Name Service Integration
      • Smart Contract Verification
    • Configuration Options
      • Admin Panel Usage
      • Automating Restarts
      • Branding Configs
      • Circle CI Updates
      • Charts and Stats
      • CSS Configuration & Presets
      • Exchange Rates
      • Front-end Config Files
      • haproxy Settings for Blockscout.com
      • Internationalization
      • Logger Configs
      • Memory Usage
      • Metrics
      • My Account Settings
      • Sorting and Pagination
      • Tracing
      • Reown Project ID for contract Read/Write
    • Indexing
      • How do I fix indexer timeouts?
      • How do I update memory consumption to fix indexer memory errors?
    • Testing
    • DB schema
  • FAQs
    • User FAQs
    • Developer FAQs
  • 🧩Resources
    • EaaS: Hosting with Blockscout
    • Contributing to Blockscout
    • Bug Bounty Program
    • Media kit
    • Release Notes
      • v5.3.0: 10/23/23
      • v5.2.0: 6/20/23
      • v5.1.0: 2/13/23
      • v5.0.0: 1/11/23
    • Discord Channel
    • Discussion
    • GitHub Repo
Powered by GitBook
LogoLogo

Privacy and Terms

  • Privacy Notice
  • Terms and Conditions

Copyright © Blockscout Limited 2023-2024

On this page
  • Removing S3 Buckets
  • Removing CodeDeploy Application
  • Remove DynamoDB instance
  • Remove DNS (Route 53)
  • Remove Isolated Cloud Resources (VPC)
  • Remove Relational Database Service (RDS)

Was this helpful?

Export as PDF
  1. Setup and Run Blockscout
  2. Deployment
  3. Ansible Deployment (AWS Cloud)
  4. AWS Permissions & Settings

Manually Cleaning Terraform Related Instances

AWS cleaning resources

Last updated 5 years ago

Was this helpful?

If the deployment process was previously successful, you can run bin/infra destroy. Additionally, bin/infra destroy_setupwill delete the DynamoDB table. .

However, in circumstances that rely on insufficient AWS account rights, the deployment process may fail. In this case, bin/infra destroy_setup will not work.

Additionally, forgetting to clean resources can result in high AWS costs in a short period of time, so it's best to check that all resources have been removed.

In order to completely manually remove Terraform deployment from AWS you need to clear all related instances of the following services:

  • S3

  • CodeDeploy

  • DynamoDB

  • Route 53

  • DynamoDB

  • VPC

  • RDS

Removing S3 Buckets

1) In the Find Services box, type in S3 and select S3, Scalable Storage in the Cloud.

2) Find related buckets created by Terraform one by one. You can only delete one at a time. They all will be prefixed with ${prefix} from the Terraform config file. Select a bucket and click Delete button. Confirm the deletion. Continue for all related buckets.

Removing CodeDeploy Application

1) In the Find Services box, type in CodeDeploy and select.

2) Select the Applications section in the left menu. Click an application in the list (related to Terraform deployment) to select.

Click the Delete Application button and confirm the deletion.

Remove DynamoDB instance

1) In the Find Services box, type in DynamoDB and select.

2) Remove all related DynamoDBs.

  1. Select Tables section in the left menu

  2. Select related database (typically 1 database per deployment). Select database

  3. Click Delete Table button.

  4. Confirm the deletion.

Remove DNS (Route 53)

1) In the Find Services box, type in Route 53 and select.

2) Remove all related Hosted zones.

  1. Select hosted zones in left menu.

  2. Select related hosted zone.

  3. Click Delete Hosted Zone button.

  4. Confirm the deletion.

Remove Isolated Cloud Resources (VPC)

1) In the Find Services box, type in VPC and select.

2) Remove all related subnets. Select Subnets section in the left menu, select all related subnets (usually 1 subnet per deployment). Right mouse click or click Delete subnet item in Actions menu. Confirm the deletion.

3) Remove all related route tables. Select Route tables section in the left menu, select all related route tables (usually it should be 1 route table for deployment). Right mouse click or click Delete Route table item in Actions menu. Confirm the deletion.

4) Detach all related internet gateways. Select Internet Gateways section in the left menu, select all related internet gateways (usually 1 internet gateway per deployment). Right mouse click or click Detach from VPC item in Actions menu. Confirm the detachment.

5) Remove all related DHCP options sets. Select DHCP Options Sets section in the left menu, select all related DHCP options sets (usually 1 DHCP option set per deployment). Right mouse click or click Delete DHCP options set item in Actions menu. Confirm the deletion.

6) Remove all related Network ACLs. Select Network ACLs section in the left menu, select all related Network ACLs (usually 1 Network ACL per deployment). Right mouse click or click Delete network ACL item in Actions menu. Confirm the deletion.

7) Remove all related Security groups. Select Security Groups section in the left menu, select all related Security groups (usually 1 Security group for deployment). Right mouse click or click Delete security group item in Actions menu. Confirm the deletion.

8) Remove all related VPCs. Select Your VPCs section in the left menu, select all related VPCs (usually1 VPC for deployment). Right mouse click or click Delete VPC item in Actions menu. Confirm the deletion.

Remove Relational Database Service (RDS)

1) In the Find Services box, type in RDS and select.

2) Remove all related subnet groups. Select Subnet groups section in the left menu, select all related subnet groups (usually 1 subnet group for deployment). Select subnet group and click Delete button. Confirm the deletion.

3) Remove all related RDSs. Select Databases section in the left menu, select all related databases (usually 1 database for deployment). Select the Database, go to the Actions menu, and select Delete from the menu. Confirm the deletion.

This instruction was moved from

🏃‍♂️
https://forum.poa.network/t/aws-settings-for-blockscout-terraform-deployment/1962
More information on destroying infrastructure is available here
Enter S3 in the Find Services Search Box
Select each instance and click Delete. Confirm and repeat for all instances.
Enter in CodeDeploy
Go to Applications and click on the instance name
Delete Application
Enter DynamoDB
Delete the selected table. Repeat if necessary.
Enter Route 53
Delete related hosted zones
Enter and select VPC
Select subnet to delete, right click, select Delete subnet and confirm deletion.
Select route table to delete, right click, select Delete Route Table and confirm deletion.
Select internet gateway to detach, right click, select Detach from VPC and confirm.
Select DHCP Option Sets, select set, right click, select Delete DHCP options set and confirm
Select Network ACLs, select ACL to delete, right click, select Delete network ACL and confirm
Go to Security Groups, select security group, right click, select Delete security group, confirm
Select Your VPCs, select correct VPC, right click, select Delete VPC and confirm
Select RDS
Go to Subnet Groups, select the subnet to delete, click the Delete button and confirm
Go to Databases, select the DB to delete, click the Actions menu and select Delete.