OR

oraclecloud-migration-deep-dive

Provides mapping and execution steps for migrating cloud architecture from AWS or Azure to OCI.

Install

mkdir -p .claude/skills/oraclecloud-migration-deep-dive && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18746" && unzip -o skill.zip -d .claude/skills/oraclecloud-migration-deep-dive && rm skill.zip

Installs to .claude/skills/oraclecloud-migration-deep-dive

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Migrate workloads from AWS or Azure to OCI — IAM translation, networking mapping, compute image import, and data migration. Use when planning an AWS-to-OCI or Azure-to-OCI migration, translating cloud concepts, or importing custom images. Trigger with "oraclecloud migration", "aws to oci", "azure to oci", "oci migration deep dive".
333 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Translate IAM concepts from AWS/Azure to OCI
  • Map networking concepts from AWS/Azure to OCI
  • Import custom images to OCI
  • Perform data migration patterns
  • Execute migration using OCI CLI and Python SDK
  • Verify migration steps

How it works

The skill provides concept mapping tables and CLI-based procedures to translate AWS/Azure architecture to OCI, import resources like custom images, and verify the migration.

Inputs & outputs

You give it
AWS or Azure architecture and resources
You get back
Migrated workloads and verified OCI equivalents

When to use oraclecloud-migration-deep-dive

  • Mapping VPC to VCN architecture
  • Importing custom images to OCI
  • Translating IAM roles to OCI policies

About this skill

Oracle Cloud Migration Deep Dive

Overview

Migrating to OCI from AWS or Azure requires translating IAM concepts (roles to policies, accounts to compartments), networking (VPC to VCN, Security Groups to NSGs), and compute (AMI to custom image). OCI's migration tooling is underdocumented compared to AWS Migration Hub or Azure Migrate. This skill provides comprehensive concept mapping tables, custom image import procedures, network topology translation, IAM policy translation, and data migration patterns — everything needed for a controlled cloud migration.

Purpose: Translate AWS/Azure architecture into OCI equivalents and execute the migration using OCI CLI and Python SDK, with verification at each step.

Prerequisites

  • OCI account with an active tenancy — https://cloud.oracle.com
  • OCI CLI installed and configured~/.oci/config validated (see oraclecloud-install-auth)
  • Python 3.8+ with the OCI SDK — pip install oci
  • Source cloud CLIaws CLI or az CLI for exporting resources
  • Object Storage bucket in OCI for staging image imports
  • IAM policies: manage objects in compartment, manage custom-images in compartment, manage virtual-network-family in compartment

Instructions

Step 1: AWS-to-OCI Concept Mapping

AWS ConceptOCI EquivalentKey Differences
AccountTenancyOne tenancy = one billing entity, use compartments for isolation
Organization OUCompartmentCompartments are hierarchical, up to 6 levels deep
IAM RoleIAM PolicyOCI policies use allow group X to verb resource in compartment Y syntax
IAM UserIAM UserSame concept, but OCI uses API key auth (not access keys)
VPCVCNVCN subnets are regional (not AZ-scoped like AWS)
Security GroupNetwork Security Group (NSG)NSGs attach to VNICs, not instances. Also have Security Lists (subnet-level)
Route TableRoute TableSimilar, but OCI route rules target gateway OCIDs
Internet GatewayInternet GatewayIdentical concept
NAT GatewayNAT GatewayIdentical concept
VPC EndpointService GatewayService Gateway routes to OCI services without internet
VPC PeeringLPG / DRGLPG for same-region, DRG for cross-region or on-premises
AMICustom ImageExport as VMDK/QCOW2, import via Object Storage
EBSBlock VolumeAttachable block storage, similar performance tiers
S3Object StorageCompatible API (S3 compatibility mode available)
RDSAutonomous DatabaseFully managed, but different administration model
EC2 Instance TypeShapeFlex shapes allow fractional OCPU allocation
Availability ZoneAvailability Domain (AD)Same concept, 1-3 ADs per region
CloudWatchMonitoring ServiceUses MQL (Monitoring Query Language) instead of CloudWatch metrics
CloudTrailAudit ServiceAutomatic, no setup required

Step 2: Azure-to-OCI Concept Mapping

Azure ConceptOCI EquivalentKey Differences
SubscriptionCompartmentOCI uses compartments for billing isolation (not separate subscriptions)
Resource GroupCompartmentCompartments are hierarchical; resource groups are flat
Azure ADOCI IAM / IDCSOCI Identity Domains replaces IDCS for SSO/federation
VNetVCNOCI subnets are regional, not tied to a zone
NSGNSGNearly identical concept
Azure SQLAutonomous DatabaseDifferent scaling model (OCPU-based)
Managed DiskBlock VolumeSimilar, but OCI uses volume groups for snapshots
Blob StorageObject StorageDifferent API, but S3-compatible mode available
Azure MonitorMonitoring ServiceMQL query language instead of Kusto
Azure PolicyCloud GuardDetective controls, not preventive like Azure Policy

Step 3: Custom Image Import (AWS AMI to OCI)

Export the AMI from AWS, then import to OCI via Object Storage:

# Step 3a: Export AMI from AWS as VMDK
aws ec2 create-store-image-task \
  --image-id ami-0123456789abcdef0 \
  --bucket my-export-bucket

# Step 3b: Download and upload to OCI Object Storage
aws s3 cp s3://my-export-bucket/ami-0123456789abcdef0.vmdk ./image.vmdk

oci os object put \
  --bucket-name migration-staging \
  --file ./image.vmdk \
  --name "imported-image.vmdk" \
  --namespace "$NAMESPACE"
import oci

config = oci.config.from_file("~/.oci/config")
compute = oci.core.ComputeClient(config)

# Step 3c: Import as OCI custom image
image = compute.create_image(
    oci.core.models.CreateImageDetails(
        compartment_id="COMPARTMENT_OCID",
        display_name="migrated-from-aws",
        image_source_details=oci.core.models.ImageSourceViaObjectStorageTupleDetails(
            source_type="objectStorageTuple",
            bucket_name="migration-staging",
            namespace_name="NAMESPACE",
            object_name="imported-image.vmdk",
            source_image_type="VMDK",
        ),
    )
).data

print(f"Image import started: {image.id}")
print(f"State: {image.lifecycle_state}")  # IMPORTING → AVAILABLE

Step 4: IAM Policy Translation

AWS IAM roles use JSON policies attached to entities. OCI uses human-readable policy statements attached to compartments:

# AWS: Allow EC2 instances to read S3
{
  "Effect": "Allow",
  "Action": ["s3:GetObject", "s3:ListBucket"],
  "Resource": "arn:aws:s3:::my-bucket/*"
}

# OCI equivalent:
allow dynamic-group app-instances to read objects in compartment prod where target.bucket.name='my-bucket'

Common IAM translations:

AWS PolicyOCI Policy Statement
AdministratorAccessallow group admins to manage all-resources in tenancy
ReadOnlyAccessallow group readers to inspect all-resources in tenancy
AmazonEC2FullAccessallow group compute-admins to manage instances in compartment prod
AmazonS3ReadOnlyAccessallow group readers to read objects in compartment prod
AmazonVPCFullAccessallow group net-admins to manage virtual-network-family in compartment prod
# Create an OCI IAM policy
oci iam policy create \
  --compartment-id "$COMPARTMENT_OCID" \
  --name "app-compute-policy" \
  --description "Allow app team to manage compute in prod" \
  --statements '["allow group app-team to manage instances in compartment prod","allow group app-team to use volumes in compartment prod"]'

Step 5: Network Topology Translation

Translate an AWS VPC with public/private subnets into an OCI VCN:

# Export AWS VPC configuration
aws ec2 describe-vpcs --vpc-ids vpc-0123456789abcdef0 --output json > aws-vpc.json
aws ec2 describe-subnets --filters "Name=vpc-id,Values=vpc-0123456789abcdef0" --output json > aws-subnets.json
aws ec2 describe-route-tables --filters "Name=vpc-id,Values=vpc-0123456789abcdef0" --output json > aws-routes.json

# Create equivalent OCI VCN
oci network vcn create \
  --compartment-id "$COMPARTMENT_OCID" \
  --display-name "migrated-vcn" \
  --cidr-blocks '["10.0.0.0/16"]' \
  --dns-label "migratedvcn"

Step 6: Data Migration (S3 to Object Storage)

OCI Object Storage supports S3-compatible API, enabling direct migration:

import oci

config = oci.config.from_file("~/.oci/config")
os_client = oci.object_storage.ObjectStorageClient(config)
namespace = os_client.get_namespace().data

# Create destination bucket
os_client.create_bucket(
    namespace_name=namespace,
    create_bucket_details=oci.object_storage.models.CreateBucketDetails(
        compartment_id="COMPARTMENT_OCID",
        name="migrated-data",
        storage_tier="Standard",
    ),
)

# Upload objects (for large migrations, use OCI Data Transfer Service)
with open("data-export.csv", "rb") as f:
    os_client.put_object(
        namespace_name=namespace,
        bucket_name="migrated-data",
        object_name="data-export.csv",
        put_object_body=f,
    )

print(f"Uploaded to: https://objectstorage.{config['region']}.oraclecloud.com/n/{namespace}/b/migrated-data/o/data-export.csv")

S3 Compatibility mode for tools that speak S3 natively:

# OCI Object Storage S3-compatible endpoint
# https://<namespace>.compat.objectstorage.<region>.oraclecloud.com

# Use with aws cli (after configuring OCI customer secret keys)
aws s3 sync s3://source-bucket/ s3://migrated-data/ \
  --endpoint-url "https://NAMESPACE.compat.objectstorage.us-ashburn-1.oraclecloud.com"

Output

Successful completion produces:

  • AWS-to-OCI and Azure-to-OCI concept mapping tables for architecture translation
  • Custom image imported from VMDK into OCI compute (ready to launch instances)
  • IAM policies translated from AWS JSON format to OCI policy statements
  • Network topology (VCN, subnets, gateways) matching the source VPC/VNet configuration
  • Data migrated from S3 to OCI Object Storage via direct upload or S3-compatible API

Error Handling

ErrorCodeCauseSolution
NotAuthorizedOrNotFound404Missing IAM policy for image importAdd allow group migrators to manage custom-images in compartment prod
InvalidParameter400Unsupported image formatOCI accepts VMDK and QCOW2 only — convert other formats first
NotAuthenticated401API key misconfiguredRe-validate: oci iam user get --user-id $(grep ^user ~/.oci/config | cut -d= -f2)
TooManyRequests429Rate limited during bulk uploadAdd delays between Object Storage uploads — no Retry-After header
InternalError500OCI service issueRetry after 60 seconds; check https://ocistatus.oraclecloud.com
Image import stuck in IMPORTINGLarge image or Object Storage throttlingCheck work request: oci work-requests work-request get --work-request-id <id>

Examples

Quick migration pre-flight check:

# Verify OCI compartment is ready
oci iam 

---

*Content truncated.*

When not to use it

  • When an OCI account is not active
  • When OCI CLI is not installed and configured
  • When Python 3.8+ with OCI SDK is not installed

Prerequisites

OCI account with active tenancyOCI CLI installed and configuredPython 3.8+ with OCI SDKSource cloud CLI (aws CLI or az CLI)

Limitations

  • Requires specific IAM policies for managing objects, custom images, and virtual networks
  • OCI accepts VMDK and QCOW2 image formats only

How it compares

This skill offers a structured approach with detailed concept mappings and CLI commands for AWS/Azure to OCI migration, addressing the underdocumentation of OCI's migration tooling.

Compared to similar skills

oraclecloud-migration-deep-dive side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
oraclecloud-migration-deep-dive (this skill)015dReviewAdvanced
cloud-architect63moNo flagsAdvanced
database-admin13moNo flagsAdvanced
hybrid-cloud-architect23moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

cloud-architect

sickn33

Expert cloud architect specializing in AWS/Azure/GCP multi-cloud infrastructure design, advanced IaC (Terraform/OpenTofu/CDK), FinOps cost optimization, and modern architectural patterns. Masters serverless, microservices, security, compliance, and disaster recovery. Use PROACTIVELY for cloud architecture, cost optimization, migration planning, or multi-cloud strategies.

649

database-admin

sickn33

Expert database administrator specializing in modern cloud databases, automation, and reliability engineering. Masters AWS/Azure/GCP database services, Infrastructure as Code, high availability, disaster recovery, performance optimization, and compliance. Handles multi-cloud strategies, container databases, and cost optimization. Use PROACTIVELY for database architecture, operations, or reliability engineering.

16

hybrid-cloud-architect

sickn33

Expert hybrid cloud architect specializing in complex multi-cloud solutions across AWS/Azure/GCP and private clouds (OpenStack/VMware). Masters hybrid connectivity, workload placement optimization, edge computing, and cross-cloud automation. Handles compliance, cost optimization, disaster recovery, and migration strategies. Use PROACTIVELY for hybrid architecture, multi-cloud strategy, or complex infrastructure integration.

22

network-engineer

sickn33

Expert network engineer specializing in modern cloud networking, security architectures, and performance optimization. Masters multi-cloud connectivity, service mesh, zero-trust networking, SSL/TLS, global load balancing, and advanced troubleshooting. Handles CDN optimization, network automation, and compliance. Use PROACTIVELY for network design, connectivity issues, or performance optimization.

11

skypilot-multi-cloud-orchestration

davila7

Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.

10

huawei-event-driven-architecture-review

Raishin

Review Huawei Cloud event-driven architecture designs — DMS Kafka dead-letter configuration, ROMA Connect integration flow capacity, FunctionGraph event trigger idempotency, SMN delivery retry policy, consumer group lag monitoring, cross-region event replication, and retry storm prevention.

00

Search skills

Search the agent skills registry