# Deploying Through Seed

**URL:** <https://discourse.sst.dev/t/deploying-through-seed/177>\
**Category:** Chapter Comments\
**Created:** [May 9, 2018, 11:20pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177 "2018-05-09T23:20:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [May 9, 2018, 11:20pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/1 "2018-05-09T23:20:05Z")

</div>

Link to chapter - [https://serverless-stack.com/chapters/deploying-through-seed.html](https://serverless-stack.com/chapters/deploying-through-seed.html)

---

<div class="post-metadata">

**Author:** ![esbenvb](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/esbenvb/32/126_2.png) [@esbenvb](https://discourse.sst.dev/u/esbenvb)\
**Post date:** [May 24, 2018, 11:06pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/2 "2018-05-24T23:06:07Z")

</div>

I get the warnings below when deploying to dev. Am I supposed to get these?

Seems like it can’t fine the `env.yml` file, which is no surprise since it’s in `.gitignore`.

But I guess SEED should create that file with the env vars that we specify - or am i missing something?

```auto
2018/05/24 22:57:52 Fetching deployment info

$ serverless info --verbose --stage dev
 
 Serverless Warning --------------------------------------
 
  A valid file to satisfy the declaration 'file(env.yml):dev,file(env.yml):default' could not be found.
 
 
 Serverless Warning --------------------------------------
 
  A valid file to satisfy the declaration 'file(env.yml):dev,file(env.yml):default' could not be found.
 
 
 Serverless Warning --------------------------------------
 
  A valid service attribute to satisfy the declaration 'self:custom.environment.stripeSecretKey' could not be found.

```

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [May 25, 2018, 5:27pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/3 "2018-05-25T17:27:28Z")

</div>

These should be fine since the `env.yml` is not a part of the repo and won’t be available in the build process.

I’ll add a note to the chapter to avoid any confusion.

---

<div class="post-metadata">

**Author:** ![karenks510](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@karenks510](https://discourse.sst.dev/u/karenks510)\
**Post date:** [July 13, 2018, 11:31am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/4 "2018-07-13T11:31:38Z")

</div>

I’m getting build failed errors (“Failed to generate build artifacts”) and I don’t understand what the error is because of all my tests pass and the build log looks fine apart from the warnings mentioned in the above post. Looked at the artifacts log and I’m seeing this error at the end:

Serverless: Invoke webpack:package  
Serverless: Package lock found - Using locked versions  
Serverless: Packing external modules: source-map-support@^0.4.18, babel-runtime@^6.26.0, stripe@^6.2.1, uuid@^3.3.2  
Serverless: Packaging service…  
Serverless: Invoke aws:package:finalize  
Serverless: Invoke aws:common:moveArtifactsToPackage

2018/07/13 10:46:54 Error: exec: internal error

# ==================== 🗑 Cleanup

2018/07/13 10:46:54 Post artifact build cleanup

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [July 16, 2018, 1:19am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/5 "2018-07-16T01:19:12Z")

</div>

It seems just for the production artifacts. I think we might be in touch over email as well.

---

<div class="post-metadata">

**Author:** ![ggg](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@ggg](https://discourse.sst.dev/u/ggg)\
**Post date:** [July 16, 2018, 10:17am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/6 "2018-07-16T10:17:14Z")

</div>

When I tried manual deploy, as I didn’t want every git push to trigger an auto deploy, the deployment is successful, since I am able to use dev v2 as far as running the lambda functions and seeing logs, etc. But the SEED page doesn’t reflect that.

 ![02%20AM](https://canada1.discourse-cdn.com/flex032/uploads/serverless_stack/original/1X/e0005dc3a9061d16b7bfd2588ccaec7f01bdc55c.png)

 ![36%20AM](https://canada1.discourse-cdn.com/flex032/uploads/serverless_stack/original/1X/b758f86d93a276533d6b9b3b8cea4803fc307691.png)

I suspect there’s some sort of state mismatch between the SEED backend and the web GUI?

At the moment I’m unable to promote v2 to prod via the SEED page.

Any idea? Thanks!

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [July 18, 2018, 6:23pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/7 "2018-07-18T18:23:12Z")

</div>

Is the build that is in progress still deploying? If you check the build logs?

The deploy process is made up of a few concurrent process (building artifacts). So it is quite possible that the Lambdas have been deployed while it’s waiting for the other artifacts to be generated.

---

<div class="post-metadata">

**Author:** ![tstarkdk](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@tstarkdk](https://discourse.sst.dev/u/tstarkdk)\
**Post date:** [October 13, 2018, 7:37am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/8 "2018-10-13T07:37:14Z")

</div>

I think the build process in Seed have changed since this chapter was written?  
I don’t see the build stage for PROD when I deploy to dev, but I get the opportunity to promote to PROD afterwards.

I don’t know if I have done something different? 🙂

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [October 14, 2018, 5:08pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/9 "2018-10-14T17:08:45Z")

</div>

Hmm there have been some changes. Not critical ones but the chapter needs to be updated.

Have you been able to get through this chapter?

---

<div class="post-metadata">

**Author:** ![tstarkdk](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@tstarkdk](https://discourse.sst.dev/u/tstarkdk)\
**Post date:** [October 14, 2018, 5:20pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/10 "2018-10-14T17:20:38Z")

</div>

Yes I managed to get through 🙂

---

<div class="post-metadata">

**Author:** ![fhboswell](https://avatars.discourse-cdn.com/v4/letter/f/3bc359/32.png) [@fhboswell](https://discourse.sst.dev/u/fhboswell)\
**Post date:** [November 20, 2018, 2:27pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/12 "2018-11-20T14:27:46Z")

</div>

Seed will not trigger a build for me at all, by pushing to master or by manually using the web interface, even using the serverless.yml from your git.

---

<div class="post-metadata">

**Author:** ![bscaspar](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bscaspar](https://discourse.sst.dev/u/bscaspar)\
**Post date:** [November 20, 2018, 5:15pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/13 "2018-11-20T17:15:28Z")

</div>

I’m not seeing the stack outputs when deploying to seed - I can see them when deploying manually with sls deploy -v. Is there some config that I may have changed by mistake to prevent the verbose deployment?

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 25, 2018, 6:59pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/14 "2018-11-25T18:59:59Z")

</div>

I think by default Seed, uses the verbose flag. Can you post a screenshot of the output you are seeing on Seed?

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 25, 2018, 7:00pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/15 "2018-11-25T19:00:18Z")

</div>

Has this issue been resolved for you?

---

<div class="post-metadata">

**Author:** ![bscaspar](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bscaspar](https://discourse.sst.dev/u/bscaspar)\
**Post date:** [November 26, 2018, 5:33pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/17 "2018-11-26T17:33:15Z")

</div>

I was looking at the Build Log instead of the Serverless Info output 😑. Problem solved.

---

<div class="post-metadata">

**Author:** ![AaronOverton](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/aaronoverton/32/315_2.png) [@AaronOverton](https://discourse.sst.dev/u/AaronOverton)\
**Post date:** [December 11, 2018, 4:16am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/18 "2018-12-11T04:16:35Z")

</div>

I’ve spent the last couple hours trying to get a deployment with the limited policy definitions as described here:

> **[Customizing your IAM Policy](https://seed.run/docs/customizing-your-iam-policy)**
>
> Seed manages the serverless project in your AWS account on behalf of the IAM user that you create. It is important to grant sufficient permissions to this user.

There have been a number of issues. One by one, I seem to be resolving them (though I am writing this while yet another Promote build is going on, so don’t know if I’ll get through it.) Do you think that guide is now out of date?

---

<div class="post-metadata">

**Author:** ![AaronOverton](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/aaronoverton/32/315_2.png) [@AaronOverton](https://discourse.sst.dev/u/AaronOverton)\
**Post date:** [December 11, 2018, 4:19am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/19 "2018-12-11T04:19:29Z")

</div>

Below is a sample from the Compile step. Locally, I ran ‘npm audit fix’ to clean up vulnerabilities. It appears the Seed build process does not. Is this something that perhaps should be added?

> # ==================== 🛠 Compile
> 
> $ npm install  
> npm WARN goalcats-api@1.0.0 No license field.  
> npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node\_modules/fsevents):  
> npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
> 
> added 973 packages from 591 contributors and audited 23448 packages in 18.304s  
> found 12 vulnerabilities (8 low, 4 high)  
> run `npm audit fix` to fix them, or `npm audit` for details

---

<div class="post-metadata">

**Author:** ![nechmads](https://avatars.discourse-cdn.com/v4/letter/n/7c8e57/32.png) [@nechmads](https://discourse.sst.dev/u/nechmads)\
**Post date:** [December 16, 2018, 10:59pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/20 "2018-12-16T22:59:20Z")

</div>

When I promoted the fist dev build to prod, unlike what the text say, it seems that a full build and upload to S3 was going on. This process took some time and I could see these steps in the build log.  
(I’m referring to this chapter: [https://serverless-stack.com/chapters/deploying-through-seed.html](https://serverless-stack.com/chapters/deploying-through-seed.html))

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [December 18, 2018, 1:05am UTC](https://discourse.sst.dev/t/deploying-through-seed/177/21 "2018-12-18T01:05:46Z")

</div>

Yeah that chapter in the docs needs an update. Thanks for letting us know.

The `npm audit fix` would be a valuable addition to the steps. I’ll pass the feedback along to the team.

---

<div class="post-metadata">

**Author:** ![king](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@king](https://discourse.sst.dev/u/king)\
**Post date:** [April 22, 2019, 3:14pm UTC](https://discourse.sst.dev/t/deploying-through-seed/177/22 "2019-04-22T15:14:59Z")

</div>

Hello,

deploying dev works fine.

When I promote the dev version I get the following error log (ERROR: Missing required key ‘Bucket’ in params):

```
Serverless: Uploading CloudFormation file to S3...
 
  Serverless Error ---------------------------------------
 
  Missing required key 'Bucket' in params
 
  Stack Trace --------------------------------------------
 
ServerlessError: Missing required key 'Bucket' in params
    at BbPromise.fromCallback.catch.err (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:286:11)
From previous event:
    at persistentRequest (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:268:13)
    at doCall (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:217:9)
    at BbPromise (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:234:14)
From previous event:
    at persistentRequest (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:215:38)
    at Object.request.requestQueue.add [as promiseGenerator] (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:255:49)
    at Queue._dequeue (/sls-1.35.1/node_modules/promise-queue/lib/index.js:153:30)
    at /sls-1.35.1/node_modules/promise-queue/lib/index.js:109:18
From previous event:
    at Queue.add (/sls-1.35.1/node_modules/promise-queue/lib/index.js:94:16)
    at AwsProvider.request (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:255:39)
    at AwsDeploy.uploadCloudFormationFile (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/deploy/lib/uploadArtifacts.js:49:26)
From previous event:
    at AwsDeploy.uploadArtifacts (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/deploy/lib/uploadArtifacts.js:18:8)
From previous event:
    at AwsDeploy.BbPromise.bind.then (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/deploy/index.js:113:39)
From previous event:
    at Object.aws:deploy:deploy:uploadArtifacts [as hook] (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/deploy/index.js:109:10)
    at BbPromise.reduce (/sls-1.35.1/node_modules/serverless/lib/classes/PluginManager.js:391:55)
From previous event:
    at PluginManager.invoke (/sls-1.35.1/node_modules/serverless/lib/classes/PluginManager.js:391:22)
    at PluginManager.spawn (/sls-1.35.1/node_modules/serverless/lib/classes/PluginManager.js:409:17)
    at AwsDeploy.BbPromise.bind.then (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/deploy/index.js:95:48)
From previous event:
    at Object.deploy:deploy [as hook] (/sls-1.35.1/node_modules/serverless/lib/plugins/aws/deploy/index.js:91:10)
    at BbPromise.reduce (/sls-1.35.1/node_modules/serverless/lib/classes/PluginManager.js:391:55)
From previous event:
    at PluginManager.invoke (/sls-1.35.1/node_modules/serverless/lib/classes/PluginManager.js:391:22)
    at PluginManager.run (/sls-1.35.1/node_modules/serverless/lib/classes/PluginManager.js:422:17)
    at variables.populateService.then.then (/sls-1.35.1/node_modules/serverless/lib/Serverless.js:157:33)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
    at Serverless.run (/sls-1.35.1/node_modules/serverless/lib/Serverless.js:144:8)
    at serverless.init.then (/sls-1.35.1/node_modules/serverless/bin/serverless:44:28)
    at <anonymous>
 
  Get Support --------------------------------------------
     Docs: docs.serverless.com
     Bugs: github.com/serverless/serverless/issues
     Issues: forum.serverless.com
 
  Your Environment Information -----------------------------
     OS: linux
     Node Version: 8.15.1
     Serverless Version: 1.35.1
 
ERROR: Missing required key 'Bucket' in params

```

Any idea?

[Next page](https://discourse.sst.dev/t/deploying-through-seed/177.md?page=2)
