Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

487
Vistas
How can I import resources to serverless managed project?

I am using serverless to deploy AWS resources. And sometimes I get an error about how there is an existing resources so the deploy failed. This could be caused by another developer in the team deploy the resources which have a conflict name. I wonder how I should handle this in serverless?

I used terraform before and it supports import command which is used to import existing resource to my project. Is there anything similar in serverless? If not, what is the best practise to solve this issue? I don't want to manually delete the resources on AWS.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Serverless allows you use existing CloudFormation resources. A pre-requisite is that your colleague or at least the CloudFormation stack describes the resource you depend on as "output".

// in your colleagues serverless.yaml to export a VPC
resources:
   // ...
   Outputs:
     StackVPC:
       Description: The ID of the VPC
       Value: !Ref MyVPC
       Export:
         Name: !Sub "${AWS::StackName}-VPCID"

In your serverless.yaml you can import/reference the existing VPC. There are a few ways to import the resource into your stack.

var1: 'Fn::ImportValue': '${refSackName}-VPCID'
var2: ${cf:${refSackName}-VPCID}

For me, I mostly use Fn::ImportValue

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda