boto3 codecommit create_commit issuesInstallation Issue with matplotlib PythonHow to save S3 object to a file using boto3Listing contents of a bucket with boto3Open S3 object as a string with Boto3What is the difference between the AWS boto and boto3Boto3, python and how to handle errorscheck if a key exists in a bucket in s3 using boto3Difference in boto3 between resource, client, and session?Multiaccount codecommit setup aws

"Sorry to bother you" in an email?

How would a Creature that needs to be seen by Humans evolve?

Is there any way white can win?

Localization at a multiplicative set is a localization at a prime ideal if local

“T” in subscript in formulas

Circular Reasoning for Epsilon-Delta Proof?

Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?

Why isn't "I've" a proper response?

Where was Carl Sagan working on a plan to detonate a nuke on the Moon? Where was he applying when he leaked it?

Can RMSE and MAE have the same value?

Who was president of the USA?

Was there ever a treaty between 2 entities with significantly different translations to the detriment of one party?

Why is there so little discussion / research on the philosophy of precision?

pgfplots: Missing one group of bars

How do I make my image comply with the requirements of this photography competition?

How can I unambiguously ask for a new user's "Display Name"?

How to respectfully refuse to assist co-workers with IT issues?

Are the players on the same team as the DM?

How do thermal tapes transfer heat despite their low thermal conductivity?

Very slow boot time and poor perfomance

'Us students' - Does this apposition need a comma?

How to prevent clipped screen edges on my TV, HDMI-connected?

What is the difference between "Grippe" and "Männergrippe"?

How do we calculate energy of food?



boto3 codecommit create_commit issues


Installation Issue with matplotlib PythonHow to save S3 object to a file using boto3Listing contents of a bucket with boto3Open S3 object as a string with Boto3What is the difference between the AWS boto and boto3Boto3, python and how to handle errorscheck if a key exists in a bucket in s3 using boto3Difference in boto3 between resource, client, and session?Multiaccount codecommit setup aws






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















When trying to create a commit using boto3's codecommit client, somehow I got AttributeError on create_commit, but other commands works as expected.



Here is the code I'm using:



client = boto3.client(
'codecommit',
aws_access_key_id=access_key,
aws_secret_access_key=secret_key,
)

resp = client.create_commit(
repositoryName='my_repo',
branchName='master',
authorName='My Name',
email='my_email@gmail.com',
putFiles=[

'filePath': '1.json',
'fileMode': 'NORMAL',
'fileContent': '%s' % (content, ),

]
)



Repository is an empty so parentCommitId is not required.



And it says:



AttributeError: 'CodeCommit' object has no attribute 'create_commit'


Does anyone face this kind of issue?










share|improve this question






























    1















    When trying to create a commit using boto3's codecommit client, somehow I got AttributeError on create_commit, but other commands works as expected.



    Here is the code I'm using:



    client = boto3.client(
    'codecommit',
    aws_access_key_id=access_key,
    aws_secret_access_key=secret_key,
    )

    resp = client.create_commit(
    repositoryName='my_repo',
    branchName='master',
    authorName='My Name',
    email='my_email@gmail.com',
    putFiles=[

    'filePath': '1.json',
    'fileMode': 'NORMAL',
    'fileContent': '%s' % (content, ),

    ]
    )



    Repository is an empty so parentCommitId is not required.



    And it says:



    AttributeError: 'CodeCommit' object has no attribute 'create_commit'


    Does anyone face this kind of issue?










    share|improve this question


























      1












      1








      1


      0






      When trying to create a commit using boto3's codecommit client, somehow I got AttributeError on create_commit, but other commands works as expected.



      Here is the code I'm using:



      client = boto3.client(
      'codecommit',
      aws_access_key_id=access_key,
      aws_secret_access_key=secret_key,
      )

      resp = client.create_commit(
      repositoryName='my_repo',
      branchName='master',
      authorName='My Name',
      email='my_email@gmail.com',
      putFiles=[

      'filePath': '1.json',
      'fileMode': 'NORMAL',
      'fileContent': '%s' % (content, ),

      ]
      )



      Repository is an empty so parentCommitId is not required.



      And it says:



      AttributeError: 'CodeCommit' object has no attribute 'create_commit'


      Does anyone face this kind of issue?










      share|improve this question














      When trying to create a commit using boto3's codecommit client, somehow I got AttributeError on create_commit, but other commands works as expected.



      Here is the code I'm using:



      client = boto3.client(
      'codecommit',
      aws_access_key_id=access_key,
      aws_secret_access_key=secret_key,
      )

      resp = client.create_commit(
      repositoryName='my_repo',
      branchName='master',
      authorName='My Name',
      email='my_email@gmail.com',
      putFiles=[

      'filePath': '1.json',
      'fileMode': 'NORMAL',
      'fileContent': '%s' % (content, ),

      ]
      )



      Repository is an empty so parentCommitId is not required.



      And it says:



      AttributeError: 'CodeCommit' object has no attribute 'create_commit'


      Does anyone face this kind of issue?







      python python-3.x boto3 aws-codecommit






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 18:23









      Hayk DavtyanHayk Davtyan

      4544 silver badges7 bronze badges




      4544 silver badges7 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0















          I asked my same issue to AWS Support, and I got an answer.



          This issues happens because current AWS Lambda runtime (Python 3.7) is using Boto3 library of v1.9.42. and this version of the library does not contains contains create_commit API.



          Recommended Workaround is uploading a deployment package containing the latest Boto3 python package (v.1.9.202) and Lambda python code.



          Check this out:
          https://docs.aws.amazon.com/ko_kr/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55384155%2fboto3-codecommit-create-commit-issues%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            I asked my same issue to AWS Support, and I got an answer.



            This issues happens because current AWS Lambda runtime (Python 3.7) is using Boto3 library of v1.9.42. and this version of the library does not contains contains create_commit API.



            Recommended Workaround is uploading a deployment package containing the latest Boto3 python package (v.1.9.202) and Lambda python code.



            Check this out:
            https://docs.aws.amazon.com/ko_kr/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html






            share|improve this answer





























              0















              I asked my same issue to AWS Support, and I got an answer.



              This issues happens because current AWS Lambda runtime (Python 3.7) is using Boto3 library of v1.9.42. and this version of the library does not contains contains create_commit API.



              Recommended Workaround is uploading a deployment package containing the latest Boto3 python package (v.1.9.202) and Lambda python code.



              Check this out:
              https://docs.aws.amazon.com/ko_kr/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html






              share|improve this answer



























                0














                0










                0









                I asked my same issue to AWS Support, and I got an answer.



                This issues happens because current AWS Lambda runtime (Python 3.7) is using Boto3 library of v1.9.42. and this version of the library does not contains contains create_commit API.



                Recommended Workaround is uploading a deployment package containing the latest Boto3 python package (v.1.9.202) and Lambda python code.



                Check this out:
                https://docs.aws.amazon.com/ko_kr/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html






                share|improve this answer













                I asked my same issue to AWS Support, and I got an answer.



                This issues happens because current AWS Lambda runtime (Python 3.7) is using Boto3 library of v1.9.42. and this version of the library does not contains contains create_commit API.



                Recommended Workaround is uploading a deployment package containing the latest Boto3 python package (v.1.9.202) and Lambda python code.



                Check this out:
                https://docs.aws.amazon.com/ko_kr/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 8 at 2:39









                Junho KimJunho Kim

                371 silver badge8 bronze badges




                371 silver badge8 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55384155%2fboto3-codecommit-create-commit-issues%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript