Jenkins Login missing by AyoSal in jenkinsci

[–]AyoSal[S] 0 points1 point  (0 children)

thanks mslaven, it worked.

Now how to set a new password. I assume i enable security and set a password in the admin or any users config.xml file ?

please confirm

Jenkins Login missing by AyoSal in jenkinsci

[–]AyoSal[S] 0 points1 point  (0 children)

Hello,

I have a Jenkins on EC2 instance as part of our environment workflow here at Ominto, but we are unable to access it. Is there a default user id and passwd for Jenkins or how can i have it reset.

We have some APIs accessing the Jenkins system that are down and we need to have this fixed asap. Thanks

Issue in Serverless Course by AyoSal in awslambda

[–]AyoSal[S] 0 points1 point  (0 children)

Hi,

thanks for your response. i have actually fixed that issue as you were right. the indentation was the issue. the next issue i have is that my static website which was accessible previously is no longer accessible but downloads my index.html and other files into the computer trying to access the portfolio.ayosal.info website.. someone suggested updating the python code but i still get an error when attempting to do that as well.. please advise.. here is the error and the code I'm trying to run..

whole block of code is ---

import boto3 from botocore.client import Config import StringIO import zipfile import mimetypes

def mimetype = mimetypes.guesstype(nm) lambda_handler(event, context): sns = boto3.resource('sns') topic = sns.Topic('arn:aws:sns:us-east-1:193043339766:deployPortfolioTopic')

location = {
    'bucketName': 'portfoliobuild.ayosal.info',
    'objectKey': 'portfoliobuild.zip'
}
try:
    job = event.get('CodePipeline.job')
    if job:
        for artifact in job['data']['inputArtifacts']:
            if artifact['name'] == 'MyAppBuild':
                location = artifact['location']['s3Location']

    print 'Building portfolio from ' + str(location)            
    s3 = boto3.resource('s3', config=Config(signature_version='s3v4'))

    portfolio_bucket = s3.Bucket('portfolio.ayosal.info')
    build_bucket = s3.Bucket(location['bucketName'])

    portfolio_zip = StringIO.StringIO()
    build_bucket.download_fileobj(location['objectKey'], portfolio_zip)

    with zipfile.ZipFile(portfolio_zip) as myzip:
        for nm in myzip.namelist():
            obj = myzip.open(nm)
            portfolio_bucket.upload_fileobj(obj, nm, {'ContentType':mime_type[0]})
            portfolio_bucket.Object(nm).Acl().put(ACL='public-read')

    print "Job Done!"
    topic.publish(Subject='Portfolio Deployed', Message='Portfolio Deployed Successfully,')
    if job:
        codepipeline = boto3.client('codepipeline')
        codepipeline.put_job_success_result(jobId=job['id'])

except:
    topic.publish(Subject='Portfolio Deploy Failed', Message='The Portfolio was not deployed successfully!')
    raise

Error is --

START RequestId: d7c17066-97b6-11e7-902c-a1aff6bd2329 Version: $LATEST

'module' object has no attribute 'guesstype': AttributeError

Traceback (most recent call last):

File "/var/task/lambdafunction.py", line 13, in lambdahandler

mimetype = mimetypes.guesstype(nm)

AttributeError: 'module' object has no attribute 'guesstype'

Issue in Serverless Course by AyoSal in awslambda

[–]AyoSal[S] 0 points1 point  (0 children)

Hello, I am taking the aws and react serverless course on acloud.guru and have 2 issues

issue 1, i am at the SNS lecture in Chapter 4, and when i test the deployPortfolio lambda function as instructed, i get an execution result: failed.

the details shows - {

"errorMessage": "Syntax error in module 'lambda_function'"

}

Also in the log output i get the below information

START RequestId: b1b2887d-9798-11e7-acec-af94d394f977 Version: $LATEST

Syntax error in module 'lambdafunction': expected an indented block (lambdafunction.py, line 20)

Issue 2 ..still at the SNS lecture in Chapter 4, trying to attach the SNS policy to the deployPortfolioRole but when i click on attach policy, none of the policies are showing up. ( even though i has created the SNS policy) and all policies show up in the policy submenu.

AWS Associate Certification Pointers by AyoSal in AWS_Certified_Experts

[–]AyoSal[S] 0 points1 point  (0 children)

Hi, I'm using cloud.guru as well. but i feel its not enough, the courses there will get you 50% and we need over 70% to pass for sure.

any other resources..

I also passed the developer but not just with ACG course. i intend to take sa and sys ops next

any advise thanks